hash-prospector
xxHash
hash-prospector | xxHash | |
---|---|---|
13 | 28 | |
614 | 8,500 | |
- | - | |
2.8 | 8.3 | |
2 months ago | 7 days ago | |
C | C | |
The Unlicense | 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.
hash-prospector
- Automated integer hash function discovery
-
A very good, one might say, a 'perfect' hashtable algorithm! Thoughts?
But for good general purpose hash functions, you can also take a look at u/skeeto's prospector project.
-
FRand: A Fast and Simple PRNG Library in Rust
Special thanks to hash-prospector for inspiration and useful information.
-
"Tests for randomness" by jonmaiga (creator of mx3)
A project to keep an eye on in the future. The -search command is very much like my own hash search, plugging different constants into xmxmx.
-
Do you think there needs to be protection from player's reloading saves when something negative happens?
Maybe look at https://github.com/skeeto/hash-prospector https://www.reedbeta.com/blog/hash-functions-for-gpu-rendering/
-
Fixing the Linear Congruential Generator
New best known functions
-
A Single Header Vectorized Hash Function (~9.6 GB/s)
https://github.com/skeeto/hash-prospector (recently outdone)
-
Weird problem: print every 32 bit number once, in random order, without wasting memory
Where each 0xXXXXXXXX is a random, odd 32-bit integer. Not all choices are equal, and you can find some excellent xmx parameters here: https://github.com/skeeto/hash-prospector/issues/19
-
A Simple Hash for Perlin Noise
For my stack based texture generator I used (utilizing https://github.com/skeeto/hash-prospector )
let intHash = x => {
-
Simplest way to create strongly typed using/typedefs for ints?
This is one of the best known hashes for 32 bit integers. See https://github.com/skeeto/hash-prospector and https://nullprogram.com/blog/2018/07/31/
xxHash
-
The One Billion Row Challenge in CUDA: from 17 minutes to 17 seconds
> GPU Hash Table?
How bad would performance have suffered if you sha256'd the lines to build the map? I'm going to guess "badly"?
Maybe something like this in CUDA: https://github.com/Cyan4973/xxHash ?
- ETag and HTTP Caching
-
Day 64: Implementing a basic Bloom Filter Using Java BitSet api
Examples of fast, simple hashes that are independent enough includes murmur, xxHash, Fowler–Noll–Vo hash function and many others
- Closed-addressing hashtables implementation
-
NIST Retires SHA-1 Cryptographic Algorithm
If you're only using the hash for non-cryptographic applications, there are much faster hashes: https://github.com/Cyan4973/xxHash
-
Does the checksum algorithm crc32c-intel support AMD Ryzen series 3000 or newer?
I found the benchmark result of AMD ryzen 5950X
-
[Study Project] A memory-optimized JSON data structure
But what's the catch, you're thinking ? Well, it is a bit slower than its counterparts when it comes to deserializing (and marginally faster for serializing). To achieve smaller footprint, it uses a few tricks and notably a custom hash table to deduplicate strings. This comes at a cost of course (even when featuring xxHash to speed things up), but keeps the slowdown reasonable (I think).
-
What do you typically use for non-cryptographic hash functions?
Non cryptographic hashes has collisions, for example, assume you having content like "abcdefg" which hashed value is "123", in case of weak hash algorithm some other content like "abcdefZ" can also have a hash "123" which basically means such hash function is failed to be unique fingerprint of particular content. BLAKE3 for example can do 6-7Gb/s which make it pretty fast and secure. If your requirement accepts collision with defined error rate, I would advise you to take a look at XXH3 if you need very snappy hash algorithm, which can run at pace or RAM access (30GB/s+), but again, run tests at particular equipment you targeting, may be AES hardware accelerated MeowHash will serve you better.
- C++ gonna die😥
- rsync, article 3: How does rsync work?
What are some alternatives?
pbrt-v4 - Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
BLAKE3 - the official Rust and C implementations of the BLAKE3 cryptographic hash function
frand - Blazingly Fast Pseudo Random Number Generator written in Rust
meow_hash - Official version of the Meow hash, an extremely fast level 1 hash
c-hashmap - A fast hash map/hash table (whatever you want to call it) for the C programming language.
xxh - 🚀 Bring your favorite shell wherever you go through the ssh. Xonsh shell, fish, zsh, osquery and so on.
blake3 - An AVX-512 accelerated implementation of the BLAKE3 cryptographic hash function
tests-for-randomness - A collection of tests for randomness.
smhasher - Hash function quality and speed tests
swift-crypto - Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.
PostgreSQL - Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch