Faster Synchronization Through Hash Maps

May 17, 2013

As part of a load testing project, I needed to collect and store data as fast as possible in a multi-threaded environment. This meant synchronizing on collections to avoid collisions. Synchronization is always a bad idea in any performance critical application. In my simple testing, adding to a synchronized ArrayList can be almost 4x slower […]

Comments Off on Faster Synchronization Through Hash Maps

Understanding Generics in Collections

March 22, 2012

Generics in Java is one of those features where almost everyone uses but very people, including myself, really understand. I had a conversation just today about understanding a use case of generics within collections and came to a realization of why generics were applied in a certain way. It is very important to not only […]

Comments Off on Understanding Generics in Collections