Skip to main content

Module memory

Module memory 

Source
Expand description

Memory allocators for Graphos.

This module provides specialized memory allocators optimized for graph database workloads:

  • arena - Epoch-based arena allocator for structural sharing
  • bump - Fast bump allocator for temporary allocations
  • pool - Object pool for frequently allocated types
  • buffer - Unified buffer manager for centralized memory management

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 structural sharing.
buffer
Unified buffer manager for memory management.
bump
Bump allocator for fast temporary allocations.
pool
Object pool for frequently allocated types.