[jira] [Assigned] (NIFI-2169) Improve RouteText performance with pre-compilation of RegEx in certain cases
[ https://issues.apache.org/jira/browse/NIFI-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marco Gaido reassigned NIFI-2169: - Assignee: Marco Gaido (was: Oleg Zhurakousky) > Improve RouteText performance with pre-compilation of RegEx in certain cases > > > Key: NIFI-2169 > URL: https://issues.apache.org/jira/browse/NIFI-2169 > Project: Apache NiFi > Issue Type: Improvement > Components: Core Framework >Affects Versions: 0.6.1 >Reporter: Stephane Maarek >Assignee: Marco Gaido >Priority: Major > Labels: beginner, easy > Fix For: 1.5.0 > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Assigned] (NIFI-2169) Improve RouteText performance with pre-compilation of RegEx in certain cases
[ https://issues.apache.org/jira/browse/NIFI-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Zhurakousky reassigned NIFI-2169: -- Assignee: Oleg Zhurakousky > Improve RouteText performance with pre-compilation of RegEx in certain cases > > > Key: NIFI-2169 > URL: https://issues.apache.org/jira/browse/NIFI-2169 > Project: Apache NiFi > Issue Type: Improvement > Components: Core Framework >Affects Versions: 0.6.1 >Reporter: Stephane Maarek >Assignee: Oleg Zhurakousky > Labels: beginner, easy > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)