You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add panic_unreachable_unchecked feature flag to the standard library
This is similar to `panic_immediate_abort` except that all panics are
considered immediate UB and can therefore be optimized away as
unreachable by the compiler.
This has been tested on
[regalloc3](https://github.com/Amanieu/regalloc3) where it resulted in a
10% speedup compared to using a normal standard library, mainly due to
the elimination of bounds checks.
While it may seem that this feature merely to satisfy those with a
reckless thirst for performance at any cost, it is also useful for saner
heads as a profiling tool to investigate the impact of unnecessary
safety check and find places where unsafe code could be used to avoid
them.
0 commit comments