Closed shabbyrobe closed 4 years ago
Precalculating the hashes in getAltIndex and replacing % with masks gets us a pretty handy speedup when inserting:
getAltIndex
%
BenchmarkFilter_Insert-8 17368 12087 -30.41%
I haven't got a 32-bit machine or OS to test this on at the moment though. Is there anything else you'd like me to test as well?
Edit: tests work fine using Debian Buster in a 32-bit VM.
Precalculating the hashes in
getAltIndex
and replacing%
with masks gets us a pretty handy speedup when inserting:I haven't got a 32-bit machine or OS to test this on at the moment though. Is there anything else you'd like me to test as well?
Edit: tests work fine using Debian Buster in a 32-bit VM.