3 ms·
This approach pretty much depends on the underlying OS to do the reallocation of memory. It is usually a good idea to do this. At the same time, if performance
by joe_the_user 14y ago
This approach pretty much depends on the underlying OS to do the reallocation of memory.
It is usually a good idea to do this. At the same time, if performance is an issue, you could look at what other allocation algorithms are available.