about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-20 05:00:45 +0000
committerbors <bors@rust-lang.org>2021-08-20 05:00:45 +0000
commitbcfd3f7e88084850f87b8e34b4dcb9fceb872d00 (patch)
treedb9a3bde6281b361d983e66c722deea60b92d7fd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent7611fe438dae91084d17022e705bf64374d5ba4b (diff)
parentdfdf3610184b949891b6f8c1b597d07c77293325 (diff)
downloadrust-bcfd3f7e88084850f87b8e34b4dcb9fceb872d00.tar.gz
rust-bcfd3f7e88084850f87b8e34b4dcb9fceb872d00.zip
Auto merge of #86898 - the8472:path-cmp, r=dtolnay
Add fast path for Path::cmp that skips over long shared prefixes

```
# before
test path::tests::bench_path_cmp_fast_path_buf_sort               ... bench:      60,811 ns/iter (+/- 865)
test path::tests::bench_path_cmp_fast_path_long                   ... bench:       6,459 ns/iter (+/- 275)
test path::tests::bench_path_cmp_fast_path_short                  ... bench:       1,777 ns/iter (+/- 34)

# after
test path::tests::bench_path_cmp_fast_path_buf_sort               ... bench:      38,140 ns/iter (+/- 211)
test path::tests::bench_path_cmp_fast_path_long                   ... bench:       1,471 ns/iter (+/- 24)
test path::tests::bench_path_cmp_fast_path_short                  ... bench:       1,106 ns/iter (+/- 9)
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions