neilconway opened a new pull request, #20328:
URL: https://github.com/apache/datafusion/pull/20328

   ## Which issue does this PR close?
   
   - Closes #20327 
   
   ## Rationale for this change
   
   By default, btrim(), ltrim(), and rtrim() trim space characters; it is also 
reasonably common for queries to specify a non-default trim pattern that is 
still a single ASCII character.
   
   We can optimize for this case by doing a byte-level scan, rather than 
invoking the more heavyweight std::string machinery used for more complex trim 
scenarios.
   
   ## What changes are included in this PR?
   
   Add a benchmark for trimming spaces, and implement the optimization 
described above.
   
   ## Are these changes tested?
   
   Yes, and benchmarked.
   
   ## 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]

Reply via email to