David Li created ARROW-12736:
--------------------------------
Summary: [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
Fix For: 5.0.0
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)