commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael A. Smith" <...@apache.org>
Subject Re: [Collections][SUBMIT] ReferenceMap...take 3...
Date Fri, 19 Jul 2002 01:51:13 GMT
On Wed, 17 Jul 2002, Jack, Paul wrote:
> http://www.geocities.com/apachecollections/refmap

Is there a compelling reason why the autoPurge method uses the internal
structure of the Map?  It looks like it could just synchronize properly
and call purge(); thus it could be implemented in MapUtils as a
decorator.

How is the hashing performance?  It looks like you're going to run into 
the problems discussed previously on this list, were most objects that 
don't customize their hashCode method will hash to the same buckets.  
That is, if the hashCode is just some memory address (e.g. a multiple of 
8), you'll hash all the objects into the same (tablesize/8) buckets.

michael




--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message