hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: svn commit: r915013
Date Mon, 22 Feb 2010 23:01:03 GMT
Sam Berlin wrote:
> ConcurrentHashMap has a high memory overhead (which has bitten me in
> projects before, where CHM was used for in many places convenience but
> wasn't strictly needed).  Unless there's a compelling need to have a
> non-blocking threadsafe map, a synchronized hashmap should work well.
> 
> Sam
> 

Folks

This feature is meant to be used for very infrequently, for special use 
cases. There is no point optimizing access to the connection attribute 
map, as it is unlikely to be accessed at all, let alone concurrently. A 
synchronized hashmap should be good enough.


Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message