netty5/common
nmittler 7e8ab2118d 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:26:50 -07:00
..
src Optimizing KObjectHashMap hashIndex() 2015-04-16 10:26:50 -07:00
pom.xml Auto-generating primitive collections for int and char keys. 2015-04-10 07:56:54 -07:00