2 ms·
I haven't looked. I use whatever allocator is in libc anyway, so it will depend on what platform you're running on. At worst, using realloc produces the same
by cperciva 11y ago
I haven't looked. I use whatever allocator is in libc anyway, so it will depend on what platform you're running on.
At worst, using realloc produces the same results as malloc/memcpy/free. At best, it might save a memcpy. No harm in giving it that flexibility.