xinlifoobar commented on issue #5951:
URL: https://github.com/apache/arrow-rs/issues/5951#issuecomment-2283949913

   I read through the code and have some initial ideas. There are serval 
sub-optimizations:
   
   Good to go:
   - Startwith/IStartwith when the needle has length < 4
   
   Side effects (might be, this could be removed completed by specialized 
string view functions):
   - Contains: when the needle has length < 4 and the first 4 bytes match.
   - Regex: when the regex has match expected < 4 and the first 4 bytes match.
   
   I would start with startwith and istartwith and needs some inputs for the 
latter 2. Please let me know your thoughts on generating better implementations 
:).
   
   CC @alamb  @XiangpengHao 


-- 
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]

Reply via email to