zuffer

Crates.iozuffer
lib.rszuffer
version0.1.1
sourcesrc
created_at2022-09-25 05:42:03.920836
updated_at2022-09-25 05:59:03.228697
descriptionA mmap file based buffer implementation.
homepage
repositoryhttps://github.com/al8n/veladb/tree/main/zuffer
max_upload_size
id673449
size76,658
Al Liu (al8n)

documentation

README

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.

Commit count: 0

cargo fmt