Conversation

Replying to
I'm working on making this functionality less costly in jemalloc, by keeping a "small-increase counter" in the metadata for realloc'd extents, and only doing a larger-than-asked-for increase if it looks like the user is doing the quadratic growth algorithm.
1
Part of why it's a huge issue is that I've taken a minimalist approach to the initial size classes by switching to the large allocation scheme once the spacing between sizes reaches 4k (i.e. beyond 16k allocations). I haven't decided how much further it should go by default yet.
1