2 ms·
It was a non-traditional compiler written in C++. > The system allocator is heavily tuned Perhaps but it probably has more constraints than a custom allocator
by IshKebab 4y ago
It was a non-traditional compiler written in C++.
> The system allocator is heavily tuned
Perhaps but it probably has more constraints than a custom allocator too, e.g. backwards compatibility with software that unwittingly depends on its exact behaviour.
I found a discussion of this where people reported various speedups (10%, 100%, 300%) on Mac by switching to a custom allocator: https://news.ycombinator.com/item?id=29068828 https://news.ycombinator.com/item?id=29068828
I'm sure there are better benchmarks if you Google it.