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
... lack of thread caching and optional features like zero-on-free, checking for zero on allocation, random + FIFO quarantines, slot rand, canaries, etc. which add up to substantial overhead when it's all enabled. The core design is fast. Out-of-line metadata isn't expensive.
1