Github user ckmcd commented on the pull request:
https://github.com/apache/nifi/pull/303#issuecomment-221658273
@markap14 wrote
> In the vast majority of use cases, I would expect that the JSON Path will
be a literal string that does not reference any attributes. In this case, I
would want to avoid compiling the JSON Path every time. Would recommend that if
the jsonPathExp is an instance of the StringLiteralEvaluator, we pre-compile
the JSON Path. We follow a similar pattern with the MatchesEvaluator for
pre-compiling regular expressions, and it can make a pretty huge difference on
performance.
Mark, can you show me an example of how to write an expression that would
not be using a StringLiteralEvaluator?
Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---