Skip to main content

Module memory

Module memory 

Source
Expand description

Custom allocators tuned for graph database workloads.

These allocators give you better performance than the global allocator for specific patterns. Pick the right one for your use case:

AllocatorBest forTrade-off
arenaMVCC versioning, bulk alloc/deallocCan’t free individual items
bumpTemporary data within a queryMust reset to free anything
poolFrequently reused objectsFixed-size objects only
bufferLarge data, memory pressureMore complex API

Re-exports§

pub use arena::Arena;
pub use arena::ArenaAllocator;
pub use buffer::BufferManager;
pub use buffer::BufferManagerConfig;
pub use buffer::BufferStats;
pub use buffer::MemoryConsumer;
pub use buffer::MemoryGrant;
pub use buffer::MemoryRegion;
pub use buffer::PressureLevel;
pub use bump::BumpAllocator;
pub use pool::ObjectPool;

Modules§

arena
Epoch-based arena allocator for MVCC.
buffer
Centralized memory management with pressure handling.
bump
Bump allocator for temporary allocations.
pool
Object pool for reusing frequently allocated types.