Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10988

Improve performance of CaseInsensitiveMap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.2
    • 2.20.0
    • camel-core
    • None
    • Patch Available
    • Unknown

    Description

      Current CaseInsensitiveMap bases on TreeMap.
      Basing on JMH, I found out that the following implementation of CaseInsensitiveMap results with even 50% performance boost, depending on use-case.
      It uses HashMap with case-insensitive wrappers on String keys.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              MarcinLachowicz Marcin Lachowicz
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: