2 releases

0.1.1 Sep 25, 2022
0.1.0 Sep 25, 2022

#761 in Memory management

MIT/Apache

41KB
770 lines

Zuffer

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.

github

docs.rs crates.io

license-apache license-mit

Installation

[dependencies]
zuffer = "0.1"

TODO

  • support no_std

License

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.

Dependencies

~6–15MB
~220K SLoC