News for hackers. Stuff that matters.
Re:Benchmarking C++ Allocators by imtringued on Monday April 27, 2020 @07:21PM (#23001368)
That only applies to short lived allocations in a garbage collected heap or allocation arenas that were specifically chosen on a case by case basis. Most memory allocations on the heap don't even happen in C or C++. Short lived objects exist on the stack and swapping your allocator with a different one won't change that.
Re:Benchmarking C++ Allocators by josefx on Tuesday April 28, 2020 @05:53AM (#23005374)
That most allocations happen on the stack doesn't change the fact that most malloc implementations are still heavily optimized for the fast path. As far as I can tell the glibc implementation at least has a fast path for small allocations.