Pomegranate is a tiny and fast log-structured merge-tree written in Rust.
Pomegranate is still under development.
Because Rust is a memory-safe, concurrency-friendly, high-performance programming language, and it also has rich and modern language features. Based on its feature, I think it is very suitable for the development of storage application.
The memory buffer consists of R runs. In the slsm, one run corresponds to one skiplsit. Only one run is activate at any time.
Skiplists are probabilistic data structures that provide for fast search within an orderedsequence of values. ey are composed of decreasingly sparse sorted runs of values thatare set in parallel, so that a search consists of searching a run until a key is found that isgreater than the desired one, then repeating the same process on the next-densest run,until the correct key is found.
Bloom lters nd important use in the sLSM when pairedone-to-one with runs in memory and on disk.
The disk-backed store is for more permanent storage and is only touched by merges fromthe memory buffer. ere areLdisk levels, each withDruns on each level. A run isan immutable sequence of sorted key-value pairs, and is captured within one memory-mapped le on disk.
Note: before you run, you should install Rust and Cargo first.
git clone https://github.com/wellls/Pomegranate.git
cd /path/to/Pomegranate
cargo build