romix/java-concurrent-hash-trie-map — pull request #8 by rovarga (2014-09-08 15:01:01+00:00)
Title: Optimize the use of AtomicReferenceFieldUpdaters

Benchmarks indicate that instatiating the updaters takes ~92% of the CPU
time required to initialize a TrieMap instance.

TrieMap.inodeupdater is an unused per-object updater, which has its
equivalent in INodeBase.updater.

rtupd is an unused istance, so we can freely remove it, lowering the
memory cost of a TrieMap just a tiny bit.

Finally, we centralize the allocation of rootupdater -- instead of
allocating it over and over again, we have a single instance which we
share.

Signed-off-by: Robert Varga