News for hackers. Stuff that matters.

gPH45

Re:Announcing the `http` crate on Tuesday August 01, 2017 @05:29AM (#14899002)
Interesting micro-optimizations... For example the use of lookup tables and nested switches in uri.rs and method.rs.

Is this common practice in Rust? Shouldn't the compiler be smart enough to do that for you? Such code seems quite sensitive to typos.