eternal
pthash
eternal | pthash | |
---|---|---|
1 | 2 | |
189 | 169 | |
0.0% | - | |
10.0 | 6.6 | |
over 1 year ago | 3 days ago | |
C++ | C++ | |
ISC License | MIT License |
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.
eternal
-
Long switch statements. Is there a better way?
Unfortunately std::map is not constexpr. There are open source alternatives though (not affiliated with the author in any way).
pthash
- Fast and compact minimal perfect hash functions in C++
-
announcing ph - open-source, rust library for perfect hashing
The best in terms of evaluation time is PTHash (I think it can achieve 1 cache miss/lookup). Unfortunately the only implementation I know of for this method is in C++ (there is certainly no implementation in Rust): https://github.com/jermp/pthash
What are some alternatives?
hof - Higher-order functions for c++
prvhash - PRVHASH - Pseudo-Random-Value Hash. Hash functions, PRNG with unlimited period, randomness extractor, and a glimpse into abyss. (inline C/C++) (Codename Gradilac/Градилак)
StaticTypeInfo - 🏀 Up your type-game. A small C++ library for compile-time type names and type indices.
sshash - A compressed, associative, exact, and weighted dictionary for k-mers.
bitset2 - std::bitset with constexpr implementations plus additional features.
komihash - Very fast, high-quality hash function, discrete-incremental and streamed hashing-capable (non-cryptographic, inline C/C++) 26GB/s + PRNG
uninttp - A universal type for non-type template parameters for C++20 or later.
lazy_importer - library for importing functions from dlls in a hidden, reverse engineer unfriendly way
vswitch - Function-like value switch.
compile-time-regular-expressions - Compile Time Regular Expression in C++
constexpr-8cc - Compile-time C Compiler implemented as C++14 constant expressions