rluvaton opened a new pull request, #6395:
URL: https://github.com/apache/arrow-rs/pull/6395
# Which issue does this PR close?
No issue as there were no bug or feature requests behind it
# Rationale for this change
using `BooleanBuffer::collect_bool` is supposed to be faster as it
eliminates the conditional `Iterator::next`
# What changes are included in this PR?
update docs example from:
```rust
let values = (0..len).map(|i| cmp(i, i).is_eq()).collect();
```
to :
```rust
let values = BooleanBuffer::collect_bool(len, |i| cmp(i, i).is_eq());
```
# Are there any user-facing changes?
Nope
--
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]