Rocket/codegen
Sergio Benitez 299a422cbc Optimize MediaType::Display, ContentType::Into<Header>, and precheck.
Differential and causal profiling determined that 35% of `Hello, world!`
dispatch time was spent rendering `Content-Type` due to many calls to `fmt` in
`MediaType::Display` and an allocation in `ContentType::Into<Header>`. This
change reduces the number of calls to `fmt` to 1 in `MediaType::Display` and
removes the allocation in `Into<Header>` for known media types.

This change also caches a `Rocket` "precheck" so that pre-dispatch checks are
done only a single time for a given `Rocket` instance, further reducing
`MockRequest::dispatch_with` time for "Hello, world!" by roughly 15%.
2017-05-23 16:41:38 -07:00
..
src Optimize MediaType::Display, ContentType::Into<Header>, and precheck. 2017-05-23 16:41:38 -07:00
tests Avoid collision in FromForm derive by using weird names. 2017-04-17 16:11:44 -07:00
build.rs Update minimum nightly version in codegen. 2017-04-16 14:23:34 -07:00
Cargo.toml New version: 0.2.6. 2017-04-17 16:21:56 -07:00