yong-hu / objenesis

Automatically exported from code.google.com/p/objenesis
0 stars 0 forks source link

Remove synchronization requirement when retrieving an instantiator from cache #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Because of Java 1.3 support, synchronization is required in ObjenesisBase.

This could be optimized now that we are in Java 5 using concurrent collections.

Original issue reported on code.google.com by henri.tr...@gmail.com on 21 Aug 2013 at 12:31

GoogleCodeExporter commented 9 years ago
No using a ConcurrentHashMap.

Benchmark shows a x10 speed improvement.

Original comment by henri.tr...@gmail.com on 21 Aug 2013 at 12:32