XiangpengHao commented on issue #6034:
URL: https://github.com/apache/arrow-rs/issues/6034#issuecomment-2248279815

   > If branch prediction works well, same function would be called again and 
again.
   
   Did you observe the branch prediction suffers on string with varying 
lengths? That's very interesting! Would love to look at the benchmark code!
   
   I think the rust implementation only has one conditional branch, i.e., `len 
> 12`. If len is smaller than 12, it calcuates the offset and unconditionaly 
jump to the corresponding offset, which should not cause pressure on the branch 
predictor.
   
    
   
   > with help of compiler assume
   
   That's a very cool idea! That would lead to cleaner and more efficient code. 
But it seems that Rust don't suppor them yet.
   
   
   
   


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