Fokko opened a new pull request, #9432:
URL: https://github.com/apache/arrow-rs/pull/9432

   # Which issue does this PR close?
   
   Closes #9431
   
   # Rationale for this change
   
   It would be nice to add `append_nulls` to MapBuilder, similar to 
`append_nulls` on `GenericListBuilder`. Appending the nulls at once, instead of 
using a loop has some nice performance implications:
   
   ```
   Benchmark results (1,000,000 nulls):
   
   ┌─────────────────────────┬─────────┐
   │         Method          │  Time   │
   ├─────────────────────────┼─────────┤
   │ append(false) in a loop │ 2.36 ms │
   ├─────────────────────────┼─────────┤
   │ append_nulls(N)         │ 50 µs   │
   └─────────────────────────┴─────────┘
   ```
   
   # What changes are included in this PR?
   
   A new public API.
   
   # Are these changes tested?
   
   With some fresh unit tests.
   
   # Are there any user-facing changes?
   
   A nice and convient new public API


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