[
https://issues.apache.org/jira/browse/NIFI-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15397639#comment-15397639
]
ASF GitHub Bot commented on NIFI-2142:
--------------------------------------
Github user jfrazee commented on the issue:
https://github.com/apache/nifi/pull/609
1. @JPercivall I addressed all your comments above and added a template to
https://gist.github.com/jfrazee/a501336826aa77d0daa74e8e0aa3afd0.
2. There is one change in behavior now -- a cache size of 0 disables the
cache whereas it was just allowing for an arbitrarily large cache.
3. There's a screenshot of the example data flow added to
https://issues.apache.org/jira/browse/NIFI-2142 which illustrates the
difference between running with and without caching. It's not 100% apples to
apples with the older TransformXml, but behaves the same way. The queues back
up and there's a stark contrast in Tasks/Time.
4. I rebased on the latest master, but contrib-check is failing because of
the commenting style on AbstractSNMPProcessor.
> Cache compiled XSLT in TransformXml
> -----------------------------------
>
> Key: NIFI-2142
> URL: https://issues.apache.org/jira/browse/NIFI-2142
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Joey Frazee
> Fix For: 1.0.0
>
> Attachments: NIFI-2142 TransformXml Data Flow.png
>
>
> TransformXml appears to be recompiling the XSLT on every onTrigger event,
> which is slow. It should cache the compiled stylesheets.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)