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] [Updated] (CAMEL-16202) camel-core - Optimize
DefaultHeaderFilterStrategy filtering
[ https://issues.apache.org/jira/browse/CAMEL-16202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-16202:
--------------------------------
Attachment: Screenshot 2021-02-13 at 17.07.36.png
> 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
> Priority: Major
> 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)