Crates.io | ts-mem-pool |
lib.rs | ts-mem-pool |
version | 0.1.3 |
source | src |
created_at | 2018-06-18 15:10:23.466255 |
updated_at | 2018-06-18 15:31:15.574472 |
description | A simple thread-safe memory pool crate |
homepage | |
repository | https://github.com/Michel-Haber/ts-mem-pool |
max_upload_size | |
id | 70656 |
size | 14,901 |
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
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.
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.
This crate is distributed under the MIT license
This crate was written as a dependency for a project by Mobile Devices Inc.