mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
0f14bea448
The optimization was proposed by @falk-hueffner in https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Micro-optimizing.20char.3A.3Afrom_u32/near/272146171, and I simplified it a bit and added an explanation of why the optimization is correct.