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

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

Github user markap14 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/71#discussion_r35454093
  
    --- Diff: 
nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java
 ---
    @@ -216,7 +233,7 @@ public void onTrigger(final ProcessContext context, 
final ProcessSession session
             }
     
             if (destinationRelationships.isEmpty()) {
    -            logger.info(this + " routing " + flowFile + " to unmatched");
    +            logger.info("{} routing {} to unmatched", new Object[]{ this, 
flowFile });
    --- End diff --
    
    We should just remove the 'this' all together because the ProcessorLogger 
will automatically prepend it for us anyway.


> 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