Rich-T-kid opened a new issue, #12398: URL: https://github.com/apache/arrow-rs/issues/12398
`take_bits` returns a newly allocated `BooleanBuffer`. In #12336, Boolean indexed coalescing then appends that buffer to an existing `BooleanBufferBuilder`, adding an intermediate allocation and copy. Add an append-style indexed gather that writes selected bits directly into an existing builder. Preserve checked and unchecked index handling, null indices, sliced source offsets, and the existing `take_bits` behavior for current callers. `BooleanBufferBuilder` lives in `arrow-buffer`, while the current implementation consumes `PrimitiveArray` from `arrow-array`, so the API should avoid introducing a dependency cycle. This may be a builder method over lower-level inputs or an `arrow-select` helper that accepts a builder. Benchmark both `take` and Boolean indexed coalescing across sparse and dense selections to make sure direct appends do not regress the existing packed implementation. Follow-up from https://github.com/apache/arrow-rs/pull/12336#discussion_r4652332025. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
