Closed zenhack closed 4 years ago
The only thing I can think of is that if you want to use vector instructions to speed up hashing (which is something I've been thinking about for RRS in particular) then it's necessary helpful for the window size to be a multiple of the SIMD register width. I think the widest registers available on x86 or x86_64 come in at 64 bytes (AVX-512), and the other widths are smaller powers of 2, so fixing the window size at 64 bytes would work well here.
I went ahead and did this, closed.
Right now the window size
W
is part of the configuration. I think this should actually just be a constant, probably 64. Rationale:W
to be a power of 2 for correctness, and exploits this for some efficiency gains.Does anyone see any reason not do do this?
//cc @bobg, @cole-miller