You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kenneth Knowles (Jira)" <ji...@apache.org> on 2021/04/28 18:22:00 UTC

[jira] [Updated] (BEAM-12248) Reduce ArrayList allocation in Row/RowUtils

     [ https://issues.apache.org/jira/browse/BEAM-12248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth Knowles updated BEAM-12248:
-----------------------------------
    Status: Open  (was: Triage Needed)

> Reduce ArrayList allocation in Row/RowUtils
> -------------------------------------------
>
>                 Key: BEAM-12248
>                 URL: https://issues.apache.org/jira/browse/BEAM-12248
>             Project: Beam
>          Issue Type: Task
>          Components: sdk-java-core
>            Reporter: Daniel Kulp
>            Assignee: Daniel Kulp
>            Priority: P2
>
> In Row.Builder.build, it currently creates a FieldOverrides object, then sets the overrides, and then will sometimes (if empty) discard everything it just did.   
> This can be optimized a bit by:
> 1) Only create the FieldOverrides if the values is not empty.   
> 2) Pass the values in to FieldOverrides constructor so that the appropriate ArrayList can be filled created and filled in immediately.   The current setup will cause an empty ArrayList to be created in the constructor and then immediately discarded in the setOverride call.   



--
This message was sent by Atlassian Jira
(v8.3.4#803005)