Crates.io | mmap-allocator |
lib.rs | mmap-allocator |
version | 0.3.1 |
source | src |
created_at | 2020-07-11 06:47:30.034426 |
updated_at | 2021-02-12 17:56:49.071578 |
description | struct implementing trait std::alloc::GlobalAlloc for unix |
homepage | |
repository | https://github.com/wbcchsyn/rust-mmap-allocator.git |
max_upload_size | |
id | 263951 |
size | 25,394,121 |
mmap-allocator
declares struct MmapAllocator
and function 'page_size' for 'unix' or 'linux' platform.
MmapAllocator
implements std::alloc::GlobalAlloc
whose backend is 'posix mmap'.
'page_size' returns OS page size. ('unix' and 'linux' os pass memory to a process by multipile of page size; if a process requires 32 bytes heap memory and if the OS page size is 4096 bytes, OS passes 4096 bytes memory chunk. Usually 'malloc' deals it to use memory effectively.)
License: Apache-2.0 OR LGPL-3.0-or-later