Re: Re: Re: [classlib] TwoKeyHashMap

2006-07-25 Thread Mikhail Loenko
Sorry, sent unfinished message my version of priorities is: 1) Correct 2) Attractive to users 3) Easy to maintain Thanks, Mikhail 2006/7/25, Mikhail Loenko <[EMAIL PROTECTED]>: 2006/7/25, Alex Blewitt <[EMAIL PROTECTED]>: > On 25/07/06, Mikhail Loenko <[EMAIL PROTECTED]> wrote: > > In general

Re: Re: Re: [classlib] TwoKeyHashMap

2006-07-25 Thread Mikhail Loenko
2006/7/25, Alex Blewitt <[EMAIL PROTECTED]>: On 25/07/06, Mikhail Loenko <[EMAIL PROTECTED]> wrote: > In general before we get rid of that class or decide to keep it, I think > we should work out an approach to performance optimizations. > > It's a rare case when perofmance might be significantly

Re: Re: Re: [classlib] TwoKeyHashMap

2006-07-24 Thread Alex Blewitt
On 25/07/06, Mikhail Loenko <[EMAIL PROTECTED]> wrote: In general before we get rid of that class or decide to keep it, I think we should work out an approach to performance optimizations. It's a rare case when perofmance might be significantly improved for free, a regular price is: additional c

Re: Re: [classlib] TwoKeyHashMap

2006-07-24 Thread Mikhail Loenko
If I understood you idea correctly, that would be thread-unsafe In general before we get rid of that class or decide to keep it, I think we should work out an approach to performance optimizations. It's a rare case when perofmance might be significantly improved for free, a regular price is: add

Re: Re: [classlib] TwoKeyHashMap

2006-07-24 Thread Anton Luht
Hello, * As Alex and other have mentioned, just use a simple wrapper object with correct equals/hashCode. There can be a single instance of such object - not creation of a new key before lookup but assigning two keys' values :) -- Regards, Anton Luht, Intel Middleware Products Division -

Re: Re: [classlib] TwoKeyHashMap

2006-07-24 Thread Mikhail Fursov
On 7/23/06, Alex Blewitt <[EMAIL PROTECTED]> wrote: This sounds like premature optimisation to me. After all, how many lookups are being performed in the crypto framework? If it's just a pairing of (say) provider/hash algorithm, how frequently is it being used? Do we have any stats that show the

Re: Re: [classlib] TwoKeyHashMap

2006-07-24 Thread Boris Kuznetsov
age- > From: Alex Blewitt [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 23, 2006 3:22 AM > To: harmony-dev@incubator.apache.org > Subject: Re: Re: [classlib] TwoKeyHashMap > > I don't think that it makes sense to maintain a completely separate > data structure just bec

RE: Re: [classlib] TwoKeyHashMap

2006-07-23 Thread Nathan Beyer
mized further by keeping the array sorted and using binary searches. -Nathan > -Original Message- > From: Alex Blewitt [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 23, 2006 3:22 AM > To: harmony-dev@incubator.apache.org > Subject: Re: Re: [classlib] TwoKeyHashMap > > I

Re: Re: [classlib] TwoKeyHashMap

2006-07-23 Thread Alex Blewitt
used. Also, I > > believe the actual keys were just Strings, so concatenated Strings could > > even be used. > > > > -Nathan > > > >> -Original Message- > >> From: Tim Ellison [mailto:[EMAIL PROTECTED] > >> Sent: Friday, July 21,

Re: [classlib] TwoKeyHashMap

2006-07-22 Thread Mikhail Loenko
erface methods won't even work correctly if used. Also, I > believe the actual keys were just Strings, so concatenated Strings could > even be used. > > -Nathan > >> -Original Message- >> From: Tim Ellison [mailto:[EMAIL PROTECTED] >> Sent: Friday,

Re: [classlib] TwoKeyHashMap

2006-07-22 Thread Geir Magnusson Jr
PROTECTED] >> Sent: Friday, July 21, 2006 11:52 AM >> To: harmony-dev >> Subject: [classlib] TwoKeyHashMap >> >> Does anyone know why we have a TwoKeyHashMap [1] utility class? >> >> I've only looked at it briefly, but I'm left wondering why the autho

RE: [classlib] TwoKeyHashMap

2006-07-21 Thread Nathan Beyer
ings could even be used. -Nathan > -Original Message- > From: Tim Ellison [mailto:[EMAIL PROTECTED] > Sent: Friday, July 21, 2006 11:52 AM > To: harmony-dev > Subject: [classlib] TwoKeyHashMap > > Does anyone know why we have a TwoKeyHashMap [1] utility class? >

[classlib] TwoKeyHashMap

2006-07-21 Thread Tim Ellison
Does anyone know why we have a TwoKeyHashMap [1] utility class? I've only looked at it briefly, but I'm left wondering why the author chose to write all that rather than use a regular HashMap with an object that combines the 'TwoKey's? There may be a subtlety I missed. Anyone know? [1] http://s