You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Jack, Paul" <pj...@sfaf.org> on 2002/07/18 05:11:56 UTC
[Collections][SUBMIT] ReferenceMap...take 3...
http://www.geocities.com/apachecollections/refmap
-Paul
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Collections][SUBMIT] ReferenceMap...take 3...
Posted by "Michael A. Smith" <ma...@apache.org>.
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>