neilconway opened a new pull request, #20344: URL: https://github.com/apache/datafusion/pull/20344
## Which issue does this PR close? - Closes #20343. ## Rationale for this change We already have a fastpath for when `from` and `to` are both single ASCII characters, but this fastpath could be further optimized by avoiding the `Vec<u8>` allocation. ## What changes are included in this PR? Implement the described optimization. Along the way, correctly preallocate the capacity of a `GenericStringBuilder` to avoid repeated re-allocations. ## Are these changes tested? Yes, no new tests or benchmarks warranted. ## 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
