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
Replying to
Since it's only wasted virtual memory for large allocations, it's already relatively cheap at least on 64-bit. This allocator is inherently 64-bit-only and already adds random guard regions around large allocations that are at least 1 page and up to 50% of the allocation size.
1
1