News for hackers. Stuff that matters.
Re:Benchmarking C++ Allocators by winrid on Monday April 27, 2020 @03:50PM (#22999283)
Yeah I think it's very situational. Like an arena allocator is going to give you a tremendous bump in allocation performance since you just allocate once and replace memory every frame - to give the gaming industry example.
Re:Benchmarking C++ Allocators by BubRoss on Monday April 27, 2020 @04:00PM (#22999375)
An arena allocator isn't going to be the underpinning of the new operator.
Re:Benchmarking C++ Allocators by enhray on Tuesday April 28, 2020 @12:25AM (#23003344)
I think it’s the other way around. Instead of redefining operator new() to allocate from an arena, user allocates memory from the arena and then constructs instance there using placement new.
Re:Benchmarking C++ Allocators by winrid on Tuesday April 28, 2020 @06:44PM (#23013019)
Right
Re:Benchmarking C++ Allocators by saagarjha on Monday April 27, 2020 @04:23PM (#22999603)
It could be!