andygrove opened a new pull request, #23456: URL: https://github.com/apache/datafusion/pull/23456
> This PR was created by an LLM as a draft PR. I will mark it as ready for review after human review. ## Which issue does this PR close? N/A — autonomous exploratory PR. ## Rationale for this change Rewrote the hex path of encode() to write hex directly into one pre-sized buffer via hex::encode_to_slice, eliminating a per-element String allocation and copy per row. ## What changes are included in this PR? Rewrote the hex path of encode() to write hex directly into one pre-sized buffer via hex::encode_to_slice, eliminating a per-element String allocation and copy per row. ## Are these changes tested? Correctness: unit tests + seeded differential fuzz (bit-identical Arrow output vs `main`). Benchmark (criterion, Rust-only): - hex_decode_4096: -0.074% faster (base 28259ns -> cand 28280ns) - hex_encode_1024: 80.934% faster (base 25305ns -> cand 4824ns) - base64_decode_8192: 0.406% faster (base 59179ns -> cand 58939ns) - hex_decode_1024: 0.42% faster (base 7069ns -> cand 7039ns) - hex_encode_4096: 81.297% faster (base 99386ns -> cand 18587ns) - hex_encode_8192: 80.24% faster (base 200031ns -> cand 39525ns) - base64_decode_1024: -1.371% faster (base 7093ns -> cand 7190ns) - hex_decode_8192: -1.053% faster (base 57109ns -> cand 57711ns) - base64_decode_4096: -0.383% faster (base 28503ns -> cand 28612ns) ## Are there any user-facing changes? <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> <!-- If there are any breaking changes to public APIs, please add the `api change` label. --> -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
