ax1s-x1zz opened a new pull request, #11005: URL: https://github.com/apache/arrow-rs/pull/11005
## What does this PR do? Replaces `BufferBuilder::<R::Native>` with `Vec::<R::Native>` when re-encoding sliced run-ends in `into_zero_offset_run_array` (`arrow-ipc/src/writer.rs`). This is part of #10245 — Rust's `Vec` has a highly optimized implementation, and switching from `BufferBuilder`/`OffsetBufferBuilder` to `Vec` typically yields a speedup. No behavior change: the re-encoded run-ends buffer is byte-identical. Existing run-array roundtrip tests (`test_run_array_unslice`, `test_roundtrip_stream_run_array_sliced`) cover the re-encoding path for all slice lengths and both slice offsets. ## Checklist - [x] Ran `cargo test -p arrow-ipc` (131 passed) - [x] Ran `cargo clippy -p arrow-ipc --all-targets` - [x] Ran `cargo fmt -p arrow-ipc -- --check` -- 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]
