Rocket/lib
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
..
benches Add hello_world benchmark. 2017-05-19 19:39:10 -07:00
src Optimize MediaType::Display, ContentType::Into<Header>, and precheck. 2017-05-23 16:41:38 -07:00
tests Remove config global state. Use Responder::respond_to. 2017-05-19 03:29:08 -07:00
build.rs Reclose connection on unread data. Minimum nightly is 1.19. 2017-05-13 02:00:35 -07:00
Cargo.toml Add ResponseBuilder::raw_body. Use OrderMap for HeaderMap. 2017-05-20 11:41:44 -07:00