Mercurial > lbo > hg > leveldb-rs
view README.md @ 94:b09acb0e365e
Fix BlockIterator: Make it storable across function calls
This is achieved by separating out the iterator state. The main problem was the internal reference to the block
that is being iterated over; using this new separation, we can store and later restore the state without having
to care about the reference to the block itself.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Thu, 15 Sep 2016 12:48:32 +0200 |
parents | d6a5c7e8d40f |
children | f3d44aa3fbdf |
line wrap: on
line source
# leveldb-rs A fully compatible implementation of LevelDB in Rust. ## Status In development; most of the infrastructure exists, but the actual database logic has not yet been implemented. ## Goals Some of the goals of this implementation are * As few copies of data as possible; most of the time, slices of bytes (`&[u8]`) are used. Owned memory is represented as `Vec<u8>` (and then possibly borrowed as slice). * Correctness -- self-checking implementation, good test coverage, etc. Just like the original implementation. * Clarity; commented code, clear structure (hopefully doing a better job than the original implementation). * Coming close-ish to the original implementation; clarifying the translation of typical C++ constructs to Rust.