Embedded key-value database for hot mutable state.
vs Pebble (NoSync):
- 3x faster reads — 1.3µs p50
- 1.4x faster writes — 292ns p50
- 117x faster startup — 224ms open + first read
- Atomic counters — 257ns Inc operation
go get github.com/uchebnick/fusedbdb, _ := oneleafdb.OpenDB(oneleafdb.DBOptions{
Dir: "/tmp/db",
CacheBytes: 5 << 20,
ThresholdBytes: 5 << 20,
})
defer db.Close()
db.Put([]byte("key"), []byte("value"))
db.Inc([]byte("counter"), 1)
value, found, _ := db.Get([]byte("key"))- Lock-free skiplist buffer
- Immutable segments with LZ4 compression
- Async WAL with group commit
Details: ARCHITECTURE.md
Experimental. Not production-ready.