You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Ben Kietzman (Jira)" <ji...@apache.org> on 2020/02/10 16:56:00 UTC

[jira] [Created] (ARROW-7822) [C++] Allocation free error Status constants

Ben Kietzman created ARROW-7822:
-----------------------------------

             Summary: [C++] Allocation free error Status constants
                 Key: ARROW-7822
                 URL: https://issues.apache.org/jira/browse/ARROW-7822
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Ben Kietzman
            Assignee: Ben Kietzman


{{Status::state_}} could be made a tagged pointer without affecting the fast path (passing around a non error status). The extra bit could be used to mark a Status' state as heap allocated or not, allowing very error statuses to be extremely cheap when their error state is known to be immutable. For example, this would allow a cheap default of {{Result<>::status_}}.



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