[ 
https://issues.apache.org/jira/browse/NIFI-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14693522#comment-14693522
 ] 

ASF GitHub Bot commented on NIFI-784:
-------------------------------------

Github user markap14 commented on the pull request:

    https://github.com/apache/nifi/pull/71#issuecomment-130315725
  
    Ugh, sorry, @taftster you are absolutely right - in my head, I was thinking 
that the @OnScheduled was creating a new HashMap each time, rather than 
clearing on @OnStopped. I just merged this to develop, so I will change it to 
use a new HashMap each time.


> Improve performance of RouteOnAttribute
> ---------------------------------------
>
>                 Key: NIFI-784
>                 URL: https://issues.apache.org/jira/browse/NIFI-784
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Brian Ghigiarelli
>              Labels: beginner, newbie
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> RouteOnAttribute has a couple inefficiencies:
> * Recalculating the dynamic properties into a HashMap for each message in 
> onTrigger when this property map can be pre-computed when the processor is 
> scheduled
> * Logger statements are concatenating strings instead of using lazy 
> evaluation with a string formatter



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to