#tree #b-tree #map #version

bplustree

Concurrent in-memory B+ Tree featuring optimistic lock coupling

1 unstable release

0.1.0 Oct 7, 2021

#999 in Concurrency

Download history 11/week @ 2024-01-23 80/week @ 2024-01-30 103/week @ 2024-02-06 81/week @ 2024-02-13 74/week @ 2024-02-20 64/week @ 2024-02-27 134/week @ 2024-03-05 260/week @ 2024-03-12 149/week @ 2024-03-19 185/week @ 2024-03-26

739 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.9MB
~35K SLoC