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] [Resolved] (CAMEL-8262) Optimize CaseInsensitiveMap
Date Mon, 26 Jan 2015 13:35:34 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-8262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-8262.
--------------------------------
    Resolution: Fixed

> 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, with the trade-off that walking the map using entrySet no longer supports mutations.



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

Mime
View raw message