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

camel-core - Optimize Splitters using Scanner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.20.0
    • camel-core
    • None
    • Unknown

    Description

      Using org.apache.camel.util.Scanner to use for splitting could potentially be optimized for more basic splitting by single char as like we do for commas.

      The Scanner creates a lot of object allocations with reg exp patterns and whatnot that is way overkill.

      Attachments

        1. TestJMH.zip
          17 kB
          Nicolas Filotto

        Issue Links

          Activity

            People

              nfilotto Nicolas Filotto
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: