[ 
https://issues.apache.org/jira/browse/ARROW-3051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16580258#comment-16580258
 ] 

Wes McKinney commented on ARROW-3051:
-------------------------------------

The issue is explained in the commit message. In most normal uses RVO should 
avoid any calls to the copy constructor. However if we did:

{code}
Status s = $CODE;
// Inspect s in some way
RETURN_NOT_OK(s);
{code}

In such case, {{s}} would be copied

> [C++] Status performance optimization from Impala/Kudu
> ------------------------------------------------------
>
>                 Key: ARROW-3051
>                 URL: https://issues.apache.org/jira/browse/ARROW-3051
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Wes McKinney
>            Priority: Major
>             Fix For: 0.11.0
>
>
> Just saw this patch, worth investigating: 
> https://github.com/apache/impala/commit/ea615d1d8026dbe1cda3f5c2b048d210b2df435b



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to