Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- is related to
-
CAMEL-8280 CaseInsensitiveMap putAll takes lots of time
- Resolved