cakeni opened a new pull request, #10630: URL: https://github.com/apache/arrow-rs/pull/10630
# Which issue does this PR close? - Part of #10245. # Rationale for this change Using `Vec` instead of `BufferBuilder` can benefit from Rust's optimized vector implementation. This updates the remaining `BufferBuilder` usage in `arrow-ord/src/sort.rs`. # What changes are included in this PR? - Replace the run-end `BufferBuilder` in `sort_run_downcasted` with a preallocated `Vec`. - Push converted run ends directly into the vector and convert it into the final Arrow buffer. # Are these changes tested? Yes. The following checks pass: - `cargo +stable-x86_64-pc-windows-gnu fmt --all -- --check` - `cargo +stable-x86_64-pc-windows-gnu clippy -p arrow-ord --all-targets --all-features --no-deps -- -D warnings` - `cargo +stable-x86_64-pc-windows-gnu test -p arrow-ord --all-features` (269 unit tests and 6 doctests passed) # Are there any user-facing changes? No. -- 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]
