FASTER
libcuckoo
Our great sponsors
FASTER | libcuckoo | |
---|---|---|
8 | 4 | |
6,199 | 1,538 | |
3.7% | 1.8% | |
7.2 | 3.5 | |
12 days ago | 24 days ago | |
C# | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
FASTER
-
A MySQL compatible database engine written in pure Go
You would be surprised by performance of modern .NET :)
Writing no-alloc is oftentimes done by reducing complexity and not doing "stupid" tricks that actually work against JIT and CoreLib features.
For databases specifically, .NET is actually positioned very well with its low-level features (intrisics incl. SIMD, FFI, struct generics though not entirely low-level) and high-throughput GC.
Interesting example of this applied in practice is Garnet[0]/FASTER[1]. Keep in mind that its codebase still consist of un-idiomatic C# and you can do way better by further simplification, but it already does the job well enough.
[0] https://github.com/microsoft/garnet
[1] https://github.com/microsoft/FASTER
- FLaNK Stack 26 February 2024
- Fast persistent recoverable log and key-value store
- GitHub - microsoft/FASTER: Fast persistent recoverable log and key-value store + cache, in C# and C++.
-
FoundationDB: A Distributed Unbundled Transactional Key Value Store
A vaguely similar project that might be of interest is: https://github.com/microsoft/FASTER
It's also an "unbundled" low-level component that one could use as the foundation for a database engine or whatever. According to Microsoft, FASTER is not just "fast", but significantly faster than even some basic in-memory data structures that ship in the .NET standard library!
The downside is that it doesn't (yet) support some more advanced features like multi-server distributed mode.
However, that relative simplicity may be preferred in some scenarios...
-
Event Sourcing
Last time i looked into it there weren't that many i could find. There is https://github.com/tikv/tikv which uses rocksdb with raft. and there is faster https://github.com/microsoft/FASTER/ .
-
Experiences with Concurrent Hash Map Libraries
you could use fasterkv https://github.com/microsoft/FASTER
-
Faster A fast concurrent persistent key-value store and log, in C# and C++
FTA, https://github.com/Microsoft/FASTER/wiki/Performance-of-FAST...
libcuckoo
-
Cuckoo Hashing Library with variable hash functions and buckets
https://github.com/efficient/libcuckoo - I'm not so sure about this one as I'm not too familiar with C++
- Libcuckoo: A high-performance concurrent hash table
-
Experiences with Concurrent Hash Map Libraries
In the case of libcuckoo a lock is obtained for iterating the elements. See here. This is done infrequently to prevent performance impact.
What are some alternatives?
parallel-hashmap - A family of header-only, very fast and memory-friendly hashmap and btree containers.
foundationdb - FoundationDB - the open source, distributed, transactional key-value store
Folly - An open-source C++ library developed and used at Facebook.
plumber - A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.
junction - Concurrent data structures in C++
tikv - Distributed transactional key-value database, originally created to complement TiDB
Kuku - Kuku is a compact and convenient cuckoo hashing library written in C++.
message-db - Microservice native message and event store for Postgres
key-value-store - Basic Key-Value Store built on top of YugabyteDB, .Net 7.0, and Entity Framework Core 7.0.
jsynchronous - Jsynchronous.js - Data synchronization for games and real-time web apps.