Mark Payne created NIFI-807:
-------------------------------
Summary: 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
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)