Skip to main content

graphos_common/memory/
mod.rs

1//! Memory allocators for Graphos.
2//!
3//! This module provides specialized memory allocators optimized for
4//! graph database workloads:
5//!
6//! - [`arena`] - Epoch-based arena allocator for structural sharing
7//! - [`bump`] - Fast bump allocator for temporary allocations
8//! - [`pool`] - Object pool for frequently allocated types
9//! - [`buffer`] - Unified buffer manager for centralized memory management
10
11pub mod arena;
12pub mod buffer;
13pub mod bump;
14pub mod pool;
15
16pub use arena::{Arena, ArenaAllocator};
17pub use buffer::{
18    BufferManager, BufferManagerConfig, BufferStats, MemoryConsumer, MemoryGrant, MemoryRegion,
19    PressureLevel,
20};
21pub use bump::BumpAllocator;
22pub use pool::ObjectPool;