Skip to content

A simple range allocator for chunked external memory

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

hcsland/chunked-range-alloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple range allocator for chunked external memory

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages