2 ms·
If the multiplier is less than the golden ratio, then the new allocation fits into the memory released from the previous two allocations.
by newaccount74 5y ago
If the multiplier is less than the golden ratio, then the new allocation fits into the memory released from the previous two allocations.
- stephencanon 5y agoBut most allocators will not actually take advantage of that, so it’s a pretty dubious argument.
- newaccount74 5y agoGood point, I haven't actually checked if any realloc implementations do that.