Hi Remy,

On Fri, Nov 28, 2014 at 4:13 PM, Rémy Maucherat <r...@apache.org> wrote:

> 2014-11-28 16:05 GMT+01:00 Martin Grigorov <mgrigo...@apache.org>:
>
> > Hi,
> >
> > Performance wise isn't it better to transform the String key to lowerCase
> > at Key construction time and later use it in equals/hashCode ?
> > Now the lower-ification would happen for most Map operation.
> >
>
>

The current is not spec compliant since headers.get(myHeader.toUpperCase())
> is supposed to work.
>

I'm not sure I follow you.
Assuming 'headers' is an instance of CaseInsensitiveKeyMap then:
- headers.get("BLAH") will delegate to innerMap.get(key{"blah"})   //
Perl-ish syntax to express what I mean
- headers.get("bLAh") will also delegate to innerMap.get(key{"blah"})

so everything should be OK


> Rémy
>

Reply via email to