Crates.io | zuffer |
lib.rs | zuffer |
version | 0.1.1 |
source | src |
created_at | 2022-09-25 05:42:03.920836 |
updated_at | 2022-09-25 05:59:03.228697 |
description | A mmap file based buffer implementation. |
homepage | |
repository | https://github.com/al8n/veladb/tree/main/zuffer |
max_upload_size | |
id | 673449 |
size | 76,658 |
Zuffer is equivalent of bytes.Buffer
in Go without the ability to read. It is NOT thread-safe.
In Memory mode, default allocator is used to allocate memory, which depending upon how the code is compiled could use jemalloc for allocations.
In Mmap mode, Zuffer
uses file mmap to allocate memory. This allows us to store big data structures without using physical memory.
max_size
can be set to limit the memory usage.
[dependencies]
zuffer = "0.1"
support no_std
zuffer
is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2022 Al Liu.