Potential use of core::hint::unreachable_unchecked
to avoid bounds checks for all users
#94
Labels
core::hint::unreachable_unchecked
to avoid bounds checks for all users
#94
Consider the following code. It's used as a wrapper in one of my projects to avoid bounds checks in safe code.
I wonder if it's practical and sound to insert unreachable hints into
memchr
crate, so that all its users could get an increase in performance. It's just a tentative suggestion that needs more discussion :)The text was updated successfully, but these errors were encountered: