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

Joseph Witt commented on NIFI-807:
----------------------------------

+1.  Code changes are good.  Apply clean.  Substantial diff on performance

> ExtractText creates a buffer for every FlowFile but could create it just once
> -----------------------------------------------------------------------------
>
>                 Key: NIFI-807
>                 URL: https://issues.apache.org/jira/browse/NIFI-807
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Mark Payne
>             Fix For: 0.3.0
>
>         Attachments: 
> 0001-NIFI-807-Cache-the-buffers-that-will-be-used-to-writ.patch
>
>
> Rather than creating a byte[] of size Max Buffer Size in the onTrigger 
> method, we could instead create a BlockingQueue<byte[]> as a member variable 
> and then populate it in an @OnScheduled method, as we know then how many 
> threads are being used (so we know how many byte arrays to make). This will 
> result in far less garbage collection and higher throughput



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

Reply via email to