#memory #allocator #memory-management #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

#214 in Concurrency

Download history 2/week @ 2024-02-21 8/week @ 2024-02-28 359/week @ 2024-03-06 31/week @ 2024-03-13

400 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–13MB
~131K SLoC