Hacker News new | ask | show | jobs
by newaccount74 1567 days ago
If the multiplier is less than the golden ratio, then the new allocation fits into the memory released from the previous two allocations.
1 comments

But most allocators will not actually take advantage of that, so it’s a pretty dubious argument.
Good point, I haven't actually checked if any realloc implementations do that.