Conversation

This Tweet was deleted by the Tweet author. Learn more
Replying to and
hardened_malloc uses per-arena-per-size-class locking. If you set the number of arenas to a decent amount (jemalloc uses 4x the number of cores) and turn off the optional security features, it has better performance / scaling than glibc and jemalloc for mid-sized allocations.
1
In fact, the baseline design would be a great fit for a low-fragmentation performance-oriented allocator. Rip out all the sanity checks and optional security features and add array-based thread-caches (still out-of-line metadata). Out-of-line metadata is good for performance.
1