memorymanager (offheap allocator for Go)
An offheap allocator for Go designed for building very large in-memory databases or caches with almost no garbage collection cost, in contrast to arena-based allocators that target short-lived per-request allocations. Includes a no-gc string interner package. Development is currently on pause as the author started a new job.
What it addresses
Popular arena-based allocators only handle short-lived per-request allocations; large in-memory databases and caches need an allocator with almost no garbage collection cost.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
memorymanager (offheap allocator for Go)
An offheap allocator for Go designed for building very large in-memory databases or caches with almost no garbage collection cost, in contrast to arena-based allocators that target short-lived per-request allocations. Includes a no-gc string interner package. Development is currently on pause as the author started a new job.
Problem: Popular arena-based allocators only handle short-lived per-request allocations; large in-memory databases and caches need an allocator with almost no garbage collection cost.
Posted by @fmstephe · Original source ↗
Source text · @fmstephe · · Source ↗
I've been working on an offheap allocator for Go. In contrast to the popular arena based allocators (which target quickly allocating/freeing short lived per-request allocations), I am targeting an allocator for build very large in-memory dbs or caches with almost no garbage collection cost. There's a little no-gc string interner package in there as well.