[
https://issues.apache.org/jira/browse/NIFI-3636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Payne updated NIFI-3636:
-----------------------------
Status: Patch Available (was: Open)
> Session should not copy FlowFile Attribute Map when creating new FlowFile
> object unless attributes are changing
> ---------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-3636
> URL: https://issues.apache.org/jira/browse/NIFI-3636
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
>
> Currently, each time we create a new FlowFile object, we do so using
> StandardFlowFileRecord.Builder and then call fromFlowFile(FlowFile). This
> copies the attributes map of the given FlowFile. We should instead just set
> the member variable of the builder to point at the same Map object as the
> given FlowFile and keep a flag indicating whether or not this was done. If
> this is done, we must lazily copy the hash map before modifying it.
> Otherwise, we can point to the same Map object.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)