← All projects
Project record1 mention
Originally shared on Hacker News

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.

Last shared
01 / The problem

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.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. 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.