#tree #b-tree #map #version

bplustree

Concurrent in-memory B+ Tree featuring optimistic lock coupling

1 unstable release

0.1.0 Oct 7, 2021

#69 in #b-tree

Download history 73/week @ 2024-01-29 88/week @ 2024-02-05 110/week @ 2024-02-12 64/week @ 2024-02-19 67/week @ 2024-02-26 93/week @ 2024-03-04 282/week @ 2024-03-11 122/week @ 2024-03-18 234/week @ 2024-03-25 188/week @ 2024-04-01 83/week @ 2024-04-08 139/week @ 2024-04-15 377/week @ 2024-04-22

790 downloads per month

MIT/Apache

170KB
3.5K SLoC

BPlusTree

Implementation of a fast in-memory concurrent B+ Tree featuring optimistic lock coupling. The implementation is based on LeanStore with some adaptations from Umbra.

The current API is very basic and more features are supposed to be added in the following versions, it tries to loosely follow the std::collections::BTreeMap API.

Currently it is not heavily optimized but is already faster than some concurrent lock-free implementations. Single threaded performance is generally slower (~ 1.4x) but still comparable to std::collections::BTreeMap with sligthly faster scans due to the B+ Tree topology.

For how to use it refer to the documentation


lib.rs:

Implementation of a fast in-memory concurrent B+ Tree featuring optimistic lock coupling. The implementation is based on LeanStore with some adaptations from Umbra.

The current API is very basic and more features are supposed to be added in the following versions, it tries to loosely follow the std::collections::BTreeMap API.

Currently it is not heavily optimized but is already faster than some concurrent lock-free implementations. Single threaded performance is generally slower (~ 1.4x) but still comparable to std::collections::BTreeMap with sligthly faster scans due to the B+ Tree topology.

use bplustree::BPlusTree;

let tree = BPlusTree::new();

tree.insert("some", "data");

Dependencies

~1–1.8MB
~33K SLoC