#memory #memory-management #allocator #allocations #chunks #allocating #async

no-std zallocator

Amortizes the cost of small allocations by allocating memory in bigger chunks

1 unstable release

0.5.1 Mar 6, 2024
0.5.0 Mar 6, 2024
0.4.0 Mar 6, 2024
0.3.1 Sep 5, 2022
0.1.0 Jul 8, 2022

#372 in Concurrency

Download history 11/week @ 2024-09-20 2/week @ 2024-09-27 1/week @ 2024-10-04

344 downloads per month
Used in bable

MIT/Apache

69KB
1.5K SLoC

Zallocator

github LoC Build codecov

docs.rs crates.io crates.io

license-apache license-mit

Amortizes the cost of small allocations by allocating memory in bigger chunks.

Installation

zallocator = "0.5"
  • Enable async related methods

    zallocator = { version = "0.5", features = ["future"] }
    
  • Without std

    zallocator = { version = "0.5", default-features = false, features = ["core"] }
    

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.5–11MB
~128K SLoC