Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-2169

Improve RouteText performance with pre-compilation of RegEx in certain cases

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.1
    • 1.5.0
    • Core Framework

    Description

      When using RegEx matches for the RouteText processor (and possibly other processors), the RegEx gets recompiled every time the processor works. The RegEx could be precompiled / cached under certain conditions, in order to improve the performance of the processor

      See email from Mark Payne:

      Re #2: The regular expression is compiled every time. This is done, though, because the Regex allows the Expression
      Language to be used, so the Regex could actually be different for each FlowFile. That being said, it could certainly be
      improved by either (a) pre-compiling in the case that no Expression Language is used and/or (b) cache up to say 10
      Regex'es once they are compiled.

      Attachments

        Issue Links

          Activity

            People

              mgaido Marco Gaido
              stephane.maarek@gmail.com Stephane Maarek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: