I'm currently developing a combined HashMap and HashSet with open
with probing using steps of triangular numbers when length is a
power of two at
I've read that for small tables (where the size of the entire
array Element is smaller than a certain threshold) a linear
search is usually faster. Is this threshold somehow related to
the sizes of cache-line?
Suggestions for compile-time or run-time logic that decides when
to use linear search are very welcome!
My current proposal is to use linear search when
ElementType.sizeof*length <= byte-size of a cache-line.