Comments (3)
From what I can see there is a compiler optimization that stack allocates [0i8; VECTOR_SIZE]
instead of heap allocating (probably because VECTOR_SIZE
is a constant), so MaybeUninit<State>
may not be faster.
from gxhash.
About to close this one unless someone has some snippet to propose?
from gxhash.
I tried using a struct which contains only the byte array and is marked as #[repr(align(16))]
. I have not tested the performance yet, but this should still allocate on the stack and force 16-byte alignment.
from gxhash.
Related Issues (20)
- How to use AVX2 only for hashmap/set, and use stable hash for hash128/64/32 HOT 12
- how to use AVX2 only for hashmap/set οΌand use stable hash for hash128
- Tracking: missing compatibility with `std::HashMap` & `std::HashSet` HOT 5
- Hybrid state gxhash HOT 12
- Major bug: out of bounds read for some input sizes HOT 1
- Primitives specialization for Hasher HOT 4
- cargo bench --no-fail-fast -F=avx2 failed HOT 9
- Quality issue: permutations produce the same hashes? HOT 4
- Latency benchmarks HOT 6
- Add fallback for platforms without AES acceleration
- Readme image link broken HOT 1
- error[E0432]: unresolved import `platform` HOT 13
- how many bytes use write() each time that are most efficient?
- Only hit the RNG once per thread HOT 1
- terminated by signal SIGILL (Illegal instruction) HOT 4
- build script is wrong HOT 2
- write(&[1u8]) and write_u8(1) yield different hashes HOT 1
- Make the algorithm more DOS resistant? HOT 1
- Change i64 seed to u64 HOT 1
- Feature request: add GxBuildHasher::with_seed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gxhash.