about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorWesley Wiser <wwiser@gmail.com>2020-10-28 08:53:55 -0400
committerWesley Wiser <wwiser@gmail.com>2020-10-28 21:53:25 -0400
commit1c1c591c81a6fba8199355066a4b4ca00df659b2 (patch)
treee2ccf65b6547430cb0b9f8c667c01a5fd05b3af6 /compiler/rustc_codegen_llvm/src
parent31ee872db5aae4750e3da1ca4ed1523c4356947f (diff)
downloadrust-1c1c591c81a6fba8199355066a4b4ca00df659b2.tar.gz
rust-1c1c591c81a6fba8199355066a4b4ca00df659b2.zip
[resolve] Use `unwrap_or_else` instead of `unwrap_or` in a hot path
This improves the performance of the `resolve_crate` function by 30% for
a very large single file crate with auto-generated C bindings.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions