commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <>
Subject Re: RE : [Collections] Difference between HashMap and FastHashMap
Date Fri, 05 Dec 2003 18:42:14 GMT
A FastHashMap is not faster than a HashMap, but it can be faster than a
Synchronized HashMap. The FastHashMap allows reads to proceed at roughly
normal performance, but writes will take longer because they involve
synchronization and copying.


From: "__matthewHawthorne" <>
> Bhanu Pabreja wrote:
> > can u give me a use case where using a FastHashMap would
> > be a better idea then the regular HashMap. Also exactly at what stage
> > flag should be set to true which will give the performance boost "FAST"
> If you really want to see what goes on under the hood, I would suggest
> taking a look at the code.
> As far as use cases, a good start would be to identify places and
> situations where your HashMaps are being used read-only.  If possible,
> you could start using it there and see if you notice a performance
> difference.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message