Re: JEP 180: Handle Frequent HashMap Collisions with Balanced Trees

2013-04-15 Thread Tom Hawtin
On 05/04/2013 19:08, mark.reinh...@oracle.com wrote: Posted: http://openjdk.java.net/jeps/180 If you're using WeakHashMap with types that (may) override equals/hashCode you have bigger problems. You almost certainly want "identity" semantics (violating the java.util.Map contract) and quite p

Re: JEP 180: Handle Frequent HashMap Collisions with Balanced Trees

2013-04-05 Thread Florian Weimer
Opt-in via Comparable seems rather risky to me. It's not just potential divergence between equals() and compareTo(), which the Comparable specification explicitly allows. At the very least, you'd have to add totally separate balanced trees for each class of key objects. -- Florian Weimer /

Re: JEP 180: Handle Frequent HashMap Collisions with Balanced Trees

2013-04-05 Thread Jeannette Hung
thanks, Mark! On Apr 5, 2013, at 11:08 AM, mark.reinh...@oracle.com wrote: > Posted: http://openjdk.java.net/jeps/180 > > - Mark

JEP 180: Handle Frequent HashMap Collisions with Balanced Trees

2013-04-05 Thread mark . reinhold
Posted: http://openjdk.java.net/jeps/180 - Mark