about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-07-20 11:14:13 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-07-20 12:01:32 -0700
commit53d8b1d0515f53d138f0b9c3067540d8c5708415 (patch)
tree2a9b021ab507f3e4d28ea47de2a11ff5213f04b9 /src/rustllvm/RustWrapper.cpp
parent4e56bbeb19c48edf6a211448a6fb5b67b29eceec (diff)
downloadrust-53d8b1d0515f53d138f0b9c3067540d8c5708415.tar.gz
rust-53d8b1d0515f53d138f0b9c3067540d8c5708415.zip
std: Cut down #[inline] annotations where not necessary
This PR cuts down on a large number of `#[inline(always)]` and `#[inline]`
annotations in libcore for various core functions. The `#[inline(always)]`
annotation is almost never needed and is detrimental to debug build times as it
forces LLVM to perform inlining when it otherwise wouldn't need to in debug
builds. Additionally `#[inline]` is an unnecessary annoation on almost all
generic functions because the function will already be monomorphized into other
codegen units and otherwise rarely needs the extra "help" from us to tell LLVM
to inline something.

Overall this PR cut the compile time of a [microbenchmark][1] by 30% from 1s to
0.7s.

[1]: https://gist.github.com/alexcrichton/a7d70319a45aa60cf36a6a7bf540dd3a
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions