Wes McKinney created ARROW-1403: ----------------------------------- Summary: [C++] Add variant of SerializeRecordBatch that accepts an writer-allocator callback Key: ARROW-1403 URL: https://issues.apache.org/jira/browse/ARROW-1403 Project: Apache Arrow Issue Type: Improvement Components: C++ Reporter: Wes McKinney Fix For: 0.7.0
When writing to other kinds of interfaces, like GPU, it would be useful to be able to pass a function or closure that can instantiate an instance of {{OutputStream}} (which might write to CPU memory, GPU, etc.) given the computed size of the record batch. Currently we allocate new CPU memory and write to that buffer, but this would eliminate an intermediate copy. So something like {code} typedef std::function<Status(const int64_t, std::unique_ptr<OutputStream>*)> StreamCreator; {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)