camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10988) Improve performance of CaseInsensitiveMap
Date Fri, 10 Mar 2017 22:24:04 GMT

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

ASF GitHub Bot commented on CAMEL-10988:
----------------------------------------

GitHub user MarcinLachowicz opened a pull request:

    https://github.com/apache/camel/pull/1527

    CAMEL-10988 - Improve performance of CaseInsensitiveMap

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MarcinLachowicz/camel CAMEL-10988_Improve_performance_of_CaseInsensitiveMap

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1527.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1527
    
----
commit 1d95907911fb4046233b9c272a9204cd8751428b
Author: Marcin Lachowicz <lachowicz.marcin1@gmail.com>
Date:   2017-03-10T22:21:40Z

    CAMEL-10988 - Improve performance of CaseInsensitiveMap

----


> Improve performance of CaseInsensitiveMap
> -----------------------------------------
>
>                 Key: CAMEL-10988
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10988
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.18.2
>            Reporter: Marcin Lachowicz
>
> Current CaseInsensitiveMap bases on TreeMap. 
> Basing on JMH, I found out that [the following implementation of CaseInsensitiveMap|https://github.com/jdereg/java-util/blob/master/src/main/java/com/cedarsoftware/util/CaseInsensitiveMap.java]
results with even 50% performance boost, depending on use-case. 
> It uses HashMap with case-insensitive wrappers on String keys. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message