commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhanu Pabreja" <pabr...@infigroup.com>
Subject RE: RE : [Collections] Difference between HashMap and FastHashMap
Date Fri, 05 Dec 2003 18:57:02 GMT
Thanx this was the kind of explanation I was looking for. Thanx a lot and if
you have some more comments please
do let me know. It really helps sometimes for someone who is not so new.

Regards,

Bhanu Pabreja.

-----Original Message-----
From: Stephen Colebourne [mailto:scolebourne@btopenworld.com]
Sent: Friday, December 05, 2003 1:42 PM
To: Jakarta Commons Users List
Subject: Re: RE : [Collections] Difference between HashMap and
FastHashMap


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



---------------------------------------------------------------------
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