ts-mem-pool

Crates.iots-mem-pool
lib.rsts-mem-pool
version0.1.3
sourcesrc
created_at2018-06-18 15:10:23.466255
updated_at2018-06-18 15:31:15.574472
descriptionA simple thread-safe memory pool crate
homepage
repositoryhttps://github.com/Michel-Haber/ts-mem-pool
max_upload_size
id70656
size14,901
Michel El Habr (Michel-Haber)

documentation

README

Memory pool

This is a simple crate meant to allow sharing data allocated in a memory pool.
Before sharing the data, it can be written, but once shared it becomes read-only.
Dropped data is returned to the memory pool where it is recycled and can be used to share other information

Performance

This approach only gains performance, when working without memory constraints, when the size of a memory slot reaches sizes near 50 000 bytes. Near 4 000 000 bytes, the time gain becomes sizeable, and in this range, this crate would be truly useful.

Contribution

I created this crate because I needed it for a project. If you need a certain feature that it currently lacks, feel free to ask for it, or contribute it to the crate.

License

This crate is distributed under the MIT license

Acknowledgment

This crate was written as a dependency for a project by Mobile Devices Inc.

Commit count: 16

cargo fmt