[
https://issues.apache.org/jira/browse/NIFI-807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Payne resolved NIFI-807.
-----------------------------
Resolution: Fixed
> 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)