arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes McKinney (JIRA)" <>
Subject [jira] [Resolved] (ARROW-518) C++: Make Status::OK method constexpr
Date Mon, 27 Feb 2017 17:37:45 GMT


Wes McKinney resolved ARROW-518.
    Resolution: Won't Fix
      Assignee: Wes McKinney

Based on the performance analysis in, the inline
constructor will be faster than a constexpr that uses a global variable due to invoking the
copy constructor. Leaving OK as is makes Arrow consistent with the current code in Impala
and Kudu

Here also is the implementation of OK() in TensorFlow:

> C++: Make Status::OK method constexpr
> -------------------------------------
>                 Key: ARROW-518
>                 URL:
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Uwe L. Korn
>            Assignee: Wes McKinney
>              Labels: beginner, newbie
> We call this method very often and probably have a small overhead as it isn't {{constexpr}}.
We also cannot simply declare it {{constexpr}} as {{arrow::Status}} is not a literal type

This message was sent by Atlassian JIRA

View raw message