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

camel-core - Optimize DefaultHeaderFilterStrategy filtering

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.7.3, 3.9.0
    • camel-core
    • 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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment