#memory-allocator #profiling #pattern #specialized #signal-safe #allocator-api #bump-allocator #memory-profiling #critical-path

libdd-alloc

Custom memory allocators for specialized allocation patterns in profiling and signal-safe contexts

1 stable release

1.0.0 Nov 17, 2025

#245 in Memory management


Used in libdd-profiling

Apache-2.0

48KB
827 lines

libdd-alloc

Custom memory allocators for specialized allocation patterns.

Overview

libdd-alloc provides specialized memory allocators designed for use in constrained environments such as signal handlers, crash handlers, and performance-critical code paths where standard allocation may not be suitable.

Features

  • no_std Compatible: Works in environments without standard library support
  • Linear Allocator: Bump allocator with minimal per-allocation overhead
  • Chain Allocator: Growable arena allocator that automatically expands
  • Virtual Allocator: Page-based memory allocation using OS-specific APIs
  • Allocator API: Implements standard allocator traits for compatibility

Dependencies

~0.2–12MB
~82K SLoC