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)