You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/02/13 16:08:00 UTC

[jira] [Created] (CAMEL-16202) camel-core - Optimize DefaultHeaderFilterStrategy filtering

Claus Ibsen created CAMEL-16202:
-----------------------------------

             Summary: camel-core - Optimize DefaultHeaderFilterStrategy filtering
                 Key: CAMEL-16202
                 URL: https://issues.apache.org/jira/browse/CAMEL-16202
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
             Fix For: 3.9.0
         Attachments: Screenshot 2021-02-13 at 17.07.36.png

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;
        }




--
This message was sent by Atlassian Jira
(v8.3.4#803005)