News for hackers. Stuff that matters.
Re:Memory Subsystem Optimizations by foltik on Thursday January 01, 2026 @02:22PM (#46457122)
> Mi-malloc is the better choice if you must preload a library, but there are even better choices.

What’s a better choice?

Re:Memory Subsystem Optimizations by jeffbee on Thursday January 01, 2026 @02:30PM (#46457200)
Linking the allocator into your program when you build it, instead of overriding just malloc and free at runtime. Then you can choose between jemalloc, mi-malloc, TCMalloc, or whatever you please, and get better features such as C++ sized delete. Rust makes this easy with for example "use tcmalloc_better::TCMalloc".