hashsplit / hashsplit-spec

The Unlicense
7 stars 3 forks source link

Consider making the window size non-configurable. #21

Closed zenhack closed 4 years ago

zenhack commented 4 years ago

Right now the window size W is part of the configuration. I think this should actually just be a constant, probably 64. Rationale:

Does anyone see any reason not do do this?

//cc @bobg, @cole-miller

cole-miller commented 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.

zenhack commented 4 years ago

I went ahead and did this, closed.