Optimize hash table modulus operation using big switch.
Integer division is really, really slow. The integer hash table benchmark spends most of its time in modulus operations! This change shaves 32% off the integer hash table benchmark runtime, and 8% off the string hash table benchmark runtime.
Showing
Please
register
or
sign in
to comment