kou commented on code in PR #39164:
URL: https://github.com/apache/arrow/pull/39164#discussion_r1421940563


##########
cpp/src/arrow/ipc/reader.cc:
##########
@@ -2052,6 +2052,39 @@ Status Listener::OnRecordBatchWithMetadataDecoded(
   return OnRecordBatchDecoded(std::move(record_batch_with_metadata.batch));
 }
 
+namespace {
+Status CopyArrayData(std::shared_ptr<ArrayData> data) {

Review Comment:
   Good catch!
   It will reduce reference count related cost.
   I'll do it after we get a consensus with this copy approach is reasonable. 
(I hope that we have better approach...)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to