cakeni opened a new pull request, #10629: URL: https://github.com/apache/arrow-rs/pull/10629
# Which issue does this PR close? - Part of #10245. # Rationale for this change Using `Vec` instead of `BufferBuilder` can improve performance by benefiting from Rust's optimized `Vec` implementation. This updates the remaining `BufferBuilder` usage in `arrow-json` and follows the existing `ListArrayDecoder` approach. # What changes are included in this PR? - Replace `MapArrayDecoder`'s offset `BufferBuilder<i32>` with a preallocated `Vec<i32>`. - Construct the final `ScalarBuffer` directly from the vector. - Remove the now-unused `BufferBuilder` import. # 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-json --all-targets --all-features --no-deps -- -D warnings` - `cargo +stable-x86_64-pc-windows-gnu test -p arrow-json --all-features` (134 unit tests and 17 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]
