netty5/common
nmittler 7aac50a79a Optimizing KObjectHashMap hashIndex()
Motivation:

The IntObjectHashMap benchmarks show the Agrona collections to be faster on put, lookup, and remove. One major difference is that we're using 2 modulus operations each time we increment the position index while iterating.  Agrona uses a mask instead.

Modifications:

Modified the KObjectHashMap to use masking rather than modulus when wrapping the position index. This requires that the capacity be a power of 2.

Result:

Improved performance of IntObjectHashMap.
2015-04-16 10:27:17 -07:00
..
src Optimizing KObjectHashMap hashIndex() 2015-04-16 10:27:17 -07:00
pom.xml Auto-generating primitive collections for int and char keys. 2015-04-10 07:57:30 -07:00