Crates.io | maskerad_memory_allocators |
lib.rs | maskerad_memory_allocators |
version | 5.2.0 |
source | src |
created_at | 2018-01-01 21:28:18.38564 |
updated_at | 2018-02-27 09:52:37.460123 |
description | custom allocators, for memory fragmentation prevention. |
homepage | |
repository | https://github.com/Maskerad-rs/maskerad_stack_allocator |
max_upload_size | |
id | 45146 |
size | 241,613 |
custom allocators, for memory fragmentation prevention.
This library is nightly-only and provides:
This allocator is a vector-like data structure, which asks n number of bytes from the heap when instantiated.
It is a structure holding two stack-based allocators. One is active, the other is inactive. When we allocate/reset with this allocator, the active stack-based allocator allocates/reset memory. We can swap the allocators, the inactive one becomes active.
This library was made to prevent memory fragmentation. The allocators preallocate memory from the heap, and we use those allocators to create objects.
See the github repository for more informations on this crate.
You can find the documentation here.