53 releases

Uses new Rust 2024

new 0.0.56 Jun 13, 2025
0.0.55 Jun 13, 2025
0.0.40 May 25, 2025
0.0.31 Apr 29, 2025
0.0.2 Feb 27, 2025

#1180 in Database interfaces

Download history 60/week @ 2025-02-21 487/week @ 2025-02-28 144/week @ 2025-03-07 189/week @ 2025-03-14 85/week @ 2025-03-21 239/week @ 2025-03-28 1045/week @ 2025-04-04 505/week @ 2025-04-11 1018/week @ 2025-04-18 168/week @ 2025-04-25 187/week @ 2025-05-02 639/week @ 2025-05-09 262/week @ 2025-05-16 138/week @ 2025-05-23 9/week @ 2025-05-30 1146/week @ 2025-06-06

1,652 downloads per month
Used in 6 crates

MIT license

265KB
9K SLoC

BRK Vec

GitHub Repo stars License Version Documentation Size Dependency status Discord Nostr Bluesky X

A Vec (an array) that is stored on disk and thus which can be much larger than the available RAM.

Compared to a key/value store, the data stored is raw byte interpretation of the Vec's values without any overhead which is very efficient. Additionally it uses close to no RAM when caching isn't active and up to 100 MB when it is.

Compression is also available and built on top zstd to save even more space (from 0 to 75%). The tradeoff being slower reading speeds, especially random reading speeds. This is due to the data being stored in compressed pages of 16 KB, which means that if you to read even one value in that page you have to uncompress the whole page.

Dependencies

~26–38MB
~585K SLoC