You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/08/28 13:14:06 UTC

[GitHub] [arrow] lidavidm commented on pull request #11023: ARROW-12712: [C++] String repeat kernel

lidavidm commented on pull request #11023:
URL: https://github.com/apache/arrow/pull/11023#issuecomment-907624892


   You may instead be interested in two things I added recently: [ArrayBuilder::AppendScalar(const Scalar&, int64_t)](https://github.com/apache/arrow/blob/master/cpp/src/arrow/array/builder_base.h#L123) and [ArrayBuilder::AppendArraySlice](https://github.com/apache/arrow/blob/master/cpp/src/arrow/array/builder_base.h#L129). This would let you implement a generalized repeat without allocating and concatenating lots of intermediate arrays, and would let you preallocate the final array as well. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org