News for hackers. Stuff that matters.
Re:Beautiful branchless binary search by josephg on Saturday April 29, 2023 @03:52AM (#35750975)
No, this is not true. Rust removes integer overflow checks in release mode, but it keeps array bounds checks.

You can see this pretty easily in compiler explorer. This is a simple array lookup compiled in release mode:

https://rust.godbolt.org/z/dhz34KEvj

There are no comments on this comment yet.