You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Mark Payne (JIRA)" <ji...@apache.org> on 2015/08/04 20:39:04 UTC
[jira] [Updated] (NIFI-807) ExtractText creates a buffer for every
FlowFile but could create it just once
[ https://issues.apache.org/jira/browse/NIFI-807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Payne updated NIFI-807:
----------------------------
Attachment: 0001-NIFI-807-Cache-the-buffers-that-will-be-used-to-writ.patch
> 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)