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

Optimize CaseInsensitiveMap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.15.0
    • camel-core
    • None
    • Unknown

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: