geoffreyclaude commented on issue #19241: URL: https://github.com/apache/datafusion/issues/19241#issuecomment-3633833843
> What about `slice::contains`? Seems like it should be somewhere between the const-sized approach and binary search in terms of threshold window. It loses all the time against the branchless and the binary search. `slice::contains` is just a wrapper around: ```rust self.iter().any(|y| y == x) ``` So it needs to do bounds checks and can't optimize for the small arrays. -- 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]
