You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/05/12 14:55:00 UTC

[jira] [Resolved] (ARROW-12736) [C++] Eliminate unnecessary copy in FieldPath::Get()

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

Antoine Pitrou resolved ARROW-12736.
------------------------------------
    Resolution: Fixed

Issue resolved by pull request 10294
[https://github.com/apache/arrow/pull/10294]

> [C++] Eliminate unnecessary copy in FieldPath::Get()
> ----------------------------------------------------
>
>                 Key: ARROW-12736
>                 URL: https://issues.apache.org/jira/browse/ARROW-12736
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: David Li
>            Assignee: David Li
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 5.0.0
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> FieldPath::Get() uses RecordBatch::column_data which returns a vector<shared_ptr<>> by _value_ instead of by _reference_ - so with wide schemas, we end up copying and then destroying a lot of shared_ptrs. When done in a tight loop - as with dataset projection - this is a major performance pessimization.



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