diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-03-17 08:49:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-17 08:49:05 -0400 |
| commit | f90fab5b264d21acb6826ff7e659101146eb475b (patch) | |
| tree | b3d1f2b41645ea22865986f898a81cba9ad94ddc /src/rustllvm/RustWrapper.cpp | |
| parent | 1909b62e79aaa70a1b40ffe48bdd7f779a3777a7 (diff) | |
| parent | 8af30132f14737a8d41db48aad9e78df396d8990 (diff) | |
| download | rust-f90fab5b264d21acb6826ff7e659101146eb475b.tar.gz rust-f90fab5b264d21acb6826ff7e659101146eb475b.zip | |
Rollup merge of #40514 - stjepang:inline-then-ordering, r=alexcrichton
Inline functions Ordering::{then, then_with}
@jongiddy noticed bad performance due to the lack of inlining on `then`
and `then_with`. I confirmed that inlining really is the culprit by
creating a custom `then` function and repeating his benchmark on my
machine with and without the `#[inline]` attribute.
The numbers were exactly the same on my machine without the attribute.
With `#[inline]` I got the same performance as I did with manually
inlined implementation.
The problem was reported in #37053.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
