camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8262) Optimize CaseInsensitiveMap
Date Thu, 22 Jan 2015 10:55:34 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287266#comment-14287266
] 

Claus Ibsen commented on CAMEL-8262:
------------------------------------

There would be some unit tests and maybe a few components that would rely on the old map behavior,
which we would need to adjust

> Optimize CaseInsensitiveMap
> ---------------------------
>
>                 Key: CAMEL-8262
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8262
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.15.0
>
>
> The CaseInsensitiveMap can be optimized as currently we keep 2 maps with the original
keys + lower case keys.
> But all that can be done from the JDK using a TreeMap with a case insenstice comparator
from the JDK itself. This reduces memory (only 1 map) and also better performance as its one
map



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message