commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
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.

Stephen


From: "__matthewHawthorne" <matth@phreaker.net>
> 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
the
> > flag should be set to true which will give the performance boost "FAST"
and
>
> 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: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message