3 ms·
What's the workload where you found that to be the case? The system allocator is heavily tuned for general use, and should be very difficult to beat -- generall
by KerrAvon 4y ago
What's the workload where you found that to be the case? The system allocator is heavily tuned for general use, and should be very difficult to beat -- generally.
- IshKebab 4y agoIt 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.