God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: SnkvDB – Single-header ACID KV store using SQLite's B-Tree engine https://ift.tt/kIMJocS
Show HN: SnkvDB – Single-header ACID KV store using SQLite's B-Tree engine I built *snkvDB* — a single-header, ACID-compliant key-value store with zero setup. https://ift.tt/cgFBwjA ### Why I built this I wanted something as simple as a hashmap, but: * persistent * crash-safe * no external dependencies * easy to drop into any C/C++ project Most KV stores are either: * too heavy (servers, background processes), or * too low-level (you manage everything) snkvDB tries to sit in between. --- ### What it is * Single-header KV store (just include and use) * ACID compliant (thanks to SQLite) * No server, no config, no build system required * Works like a simple embedded database --- ### Under the hood snkvDB is built on SQLite’s storage engine (B-Tree backend), so you get: * durability * transactions * mature, battle-tested storage But the API is simplified to a minimal KV interface. --- ### When to use it * Embedding storage in CLI tools or small apps * Replacing ad-hoc file storage * Lightweight persistence without running a DB server --- ### Benchmarks I’ve compared it with RocksDB and LMDB here: https://ift.tt/cgFBwjA TL;DR: * Faster than RocksDB for small/medium workloads * Easier to use than LMDB * Balanced read/write performance --- ### Trade-offs * Not for write-heavy, high-throughput workloads (RocksDB is better there) * LMDB can be faster for pure reads * This prioritizes simplicity + safety over raw performance --- Would love feedback, especially on: * API design * performance * real-world use cases https://ift.tt/cgFBwjA February 16, 2026 at 03:24AM
Subscribe to:
Post Comments (Atom)
Show HN: SnkvDB – Single-header ACID KV store using SQLite's B-Tree engine https://ift.tt/kIMJocS
Show HN: SnkvDB – Single-header ACID KV store using SQLite's B-Tree engine I built *snkvDB* — a single-header, ACID-compliant key-value ...
-
Show HN: Applesoft BASIC editor with example programs This is an Applesoft BASIC editor that extracts and updates code into a live Apple II ...
-
Show HN: A Spotify player in the terminal with full feature parity https://ift.tt/oZgrl1Q July 18, 2024 at 02:57AM
-
A word of prayer for you this month of July. God bless you abundantly, Amen. Fr. Kris Ikegwuonu, MDM. (+234 803 435 7990)
No comments:
Post a Comment