chunked-range-alloc

Crates.iochunked-range-alloc
lib.rschunked-range-alloc
version1.0.0
created_at2025-08-28 15:52:20.05177+00
updated_at2025-08-28 15:52:20.05177+00
descriptionA simple generic range allocator for chunked external memory
homepage
repositoryhttps://github.com/hcsland/chunked-range-alloc
max_upload_size
id1814278
size42,986
(VinTarZ)

documentation

README

Rust chunked range allocator

Crates.io Documentation

A simple range allocator for chunked external memory

chunked-range-alloc was created for 2 use cases:

  1. packing game assets into archive files
  2. basis of specialized vulkan memory allocator

Features:

  • Allocation includes chunk_index in addition to offset and len
  • from_allocations constructor for loading existing allocations (example: game assets index)
  • optional bincode and serde support
  • simple, safe code
  • good enough performance: allocator uses BTree internally, best-fit search strategy, immediately coalesces on free

Non-goals:

  • blazingly fast constant O(🚀) time complexity

MSRV

Latest stable

License

Licensed under either of:

at your option.

Commit count: 1

cargo fmt