mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
d16c55d6f6
Add `#[inline]` to `BTreeMap::new` constructor This PR add the `#[inline]` attribute to `BTreeMap::new` constructor as to make it eligible for inlining. <details> For some context: I was profiling `rustc --check-cfg` with callgrind and due to the way we currently setup all the targets and we end-up calling `BTreeMap::new` multiple times for (nearly) all the targets. Adding the `#[inline]` attribute reduced the number of instructions needed. </details> |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |