Map
implementation that stores data in simple fields until the size is greater than 3. This map is designed for performance and can outstrip HashMap. It also has good garbage collection characteristics.
The performance gains on puts are due to not needing to create a Map Entry object. This is a large saving not only in performance but in garbage collection.
Whilst in flat mode this map is also easy for the garbage collector to dispatch. This is because it contains no complex objects or arrays which slow the progress.
Do not use Flat3Map
if the size is likely to grow beyond 3.
@since Commons Collections 3.0
@version $Revision: 1.18 $ $Date: 2004/05/26 21:56:05 $
@author Stephen Colebourne
|
|
|
|
|
|
|
|
|
|