]> git.lizzy.rs Git - rust.git/commit
std: Inline `DefaultResizePolicy::new`
authorAlex Crichton <alex@alexcrichton.com>
Sat, 28 Apr 2018 21:14:21 +0000 (14:14 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 28 Apr 2018 21:14:21 +0000 (14:14 -0700)
commitc1bb1caa11ba30b42f62b58f74e530288779eb85
tree28b65805cd8c0b79f87ca6bc47dba813d698a3c8
parentff65726ebf1d7d732e24175a41381e53f39ee892
std: Inline `DefaultResizePolicy::new`

This should allow us to tighten up the [codegen][example] a bit more, avoiding a
function call across object boundaries in the default optimized case.

[example]: https://play.rust-lang.org/?gist=c1179088b0f8a4dcd93a9906463f993d&version=stable&mode=release
src/libstd/collections/hash/map.rs