Y
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
stephencanon
1567 days ago
But most allocators will not actually take advantage of that, so it’s a pretty dubious argument.
link
newaccount74
1567 days ago
Good point, I haven't actually checked if any realloc implementations do that.
link