Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
When using a default pattern, we know what its ahead of time, and can do a quicker check, eg as its about keys starting with Camel or org.apache.camel.
Otherwise the regexp patterm matcher may allocate excessive objects.
if (pattern != null && pattern.matcher(headerName).matches())
{ return filterOnMatch; }Attachments
Attachments
Issue Links
- is related to
-
CAMEL-16199 camel-http - Optimize headers added as request headers in producer
- Resolved
- relates to
-
CAMEL-16203 camel-core - Optimize removeHeaders all
- Resolved