about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-02 21:45:20 +0000
committerbors <bors@rust-lang.org>2022-05-02 21:45:20 +0000
commit3d0ac7ea23888438752957eeeb5aa2b73b4fda72 (patch)
treefc7a1602a1d73a0e5a9eed9b28fbc90c42ffdbc1 /src/librustdoc/html/static/js/source-script.js
parentbed05e996e37e44b1a3980b84754af621fd3c4ce (diff)
parenta68a5d219d0138c7b39403c6b9dc08e2cf5d05be (diff)
downloadrust-3d0ac7ea23888438752957eeeb5aa2b73b4fda72.tar.gz
rust-3d0ac7ea23888438752957eeeb5aa2b73b4fda72.zip
Auto merge of #92566 - the8472:inline-tra, r=m-ou-se
Inline `__iterator_get_unchecked` for some iterator adapters.

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 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions