Skip to main content

Module allocator

Module allocator 

Source
Expand description

Custom Memory Allocators for Geospatial Data

This module provides specialized allocators optimized for geospatial workloads:

  • Slab allocator for fixed-size blocks (tiles)
  • Buddy allocator for variable-size blocks
  • Thread-local allocation pools
  • Allocation tracking and statistics
  • Memory leak detection in debug mode

Structs§

AllocatorStats
Statistics for allocator performance tracking
BuddyAllocator
Buddy allocator for variable-size blocks
SlabAllocator
Slab allocator for fixed-size blocks
ThreadLocalAllocator
Thread-local allocator pool

Constants§

MAX_BLOCK_SIZE
Maximum block size for buddy allocator (16MB)
MIN_ALIGNMENT
Minimum alignment for all allocations
SLAB_SIZES
Slab sizes for common geospatial tile dimensions

Traits§

Allocator
Generic allocator trait