about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2022-01-05 02:22:39 +0100
committerThe 8472 <git@infinite-source.de>2022-05-02 20:54:46 +0200
commita68a5d219d0138c7b39403c6b9dc08e2cf5d05be (patch)
tree64a17122bab803d9d59d7eedf9e30c495c65d68a /compiler/rustc_codegen_llvm/src
parente3db41bf97f6a96e2d1236a1c4c3055b5c06b282 (diff)
downloadrust-a68a5d219d0138c7b39403c6b9dc08e2cf5d05be.tar.gz
rust-a68a5d219d0138c7b39403c6b9dc08e2cf5d05be.zip
This aligns the inline attributes of existing `__iterator_get_unchecked` with those of `next()` on adapters that have both.
It improves the performance of iterators using unchecked access when building in incremental mode
(due to the larger CGU count?). It might negatively affect incremental compile times for better runtime results,
but considering that the equivalent `next()` implementations also are `#[inline]` and usually are more complex this
should be ok.

```
./x.py bench library/core -i --stage 0 --test-args bench_trusted_random_access

OLD: 119,172 ns/iter
NEW:  17,714 ns/iter
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions