bulk_allocator

Crates.iobulk_allocator
lib.rsbulk_allocator
version0.5.2
sourcesrc
created_at2020-07-24 14:57:48.822404
updated_at2023-08-14 05:02:47.206066
descriptionImplementations of GlobalAlloc holding memory cache.
homepage
repositoryhttps://github.com/wbcchsyn/rust-bulk-allocator
max_upload_size
id269026
size125,549
wbcchsyn (wbcchsyn)

documentation

https://docs.rs/bulk_allocator/0.5.2/bulk_allocator/

README

bulk_allocator

bulk-allocator provides implementations of GlobalAlloc holding memory cache. The instance acquires memory chunks from the backend and frees them on the drop at once for the performance.

Method dealloc does not free the specified pointer immediately, but pools in the cache.

Method alloc acquires a memory chunk from the backend and stores into the cache if the cache is empty, and then pops and returns a pointer from the cache.

It is when the instance is dropped that the memory chunks are deallocated.

License: LGPL-3.0-or-later OR Apache-2.0

Commit count: 389

cargo fmt