You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Marcin Lachowicz (JIRA)" <ji...@apache.org> on 2017/03/10 22:11:04 UTC
[jira] [Created] (CAMEL-10988) Improve performance of
CaseInsensitiveMap
Marcin Lachowicz created CAMEL-10988:
----------------------------------------
Summary: 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)