alamb commented on issue #6528:
URL: https://github.com/apache/arrow-rs/issues/6528#issuecomment-3740564341

   > > I would like to eventually implement a way to reuse existing buffers for 
boolean arrays when possible (e.g. similar to 
[`binary_mut`](https://docs.rs/arrow/latest/arrow/compute/fn.binary_mut.html)
   > 
   > Given that `NullBuffer` wraps a `BooleanBuffer` wraps a `Buffer` wraps a 
slice of an `Arc<Bytes>`... that might be tricky?
   
   Yeah, I think we will need an API like 
https://docs.rs/arrow/latest/arrow/array/struct.PrimitiveArray.html#method.unary_mut
 but for booleans
   
   However, that API is somewhat akward to use now (as the caller has to handle 
shared buffers) 
   
   I think a nicer (additional) API would be to have a "reuse if possible, and 
allocate new if not)"
   
   I'll try and write up my thoughts at some point


-- 
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]

Reply via email to