2 ms·
Wouldn’t it be nice if we could specify the allocators in GC languages? Like, why not expose a bump allocator arena to Python with a manual release?
by williamcotton 4y ago
Wouldn’t it be nice if we could specify the allocators in GC languages? Like, why not expose a bump allocator arena to Python with a manual release?
- krapp 4y agoI don't know if C++ counts as a "GC language" per se, but you can write custom allocators for STL containers (eg here: https://betterprogramming.pub/c-memory-pool-and-small-object-allocator-8f27671bd9ee https://betterprogramming.pub/c-memory-pool-and-small-object...).