mbutrovich commented on PR #7358:
URL: https://github.com/apache/arrow-rs/pull/7358#issuecomment-2770735324
For `ceil` I disassembled `MutableBuffer::new_null` since all it does is use
`ceil` and then allocate:
```rust
/// creates a new [MutableBuffer] with capacity and length capable of
holding `len` bits.
/// This is useful to create a buffer for packed bitmaps.
pub fn new_null(len: usize) -> Self {
let num_bytes = bit_util::ceil(len, 8);
MutableBuffer::from_len_zeroed(num_bytes)
}
```
[The generated code is the same between main this
PR.](https://www.diffchecker.com/LSNdNnWY/)
--
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]