diff options
| author | Wesley Wiser <wwiser@gmail.com> | 2020-10-28 08:53:55 -0400 |
|---|---|---|
| committer | Wesley Wiser <wwiser@gmail.com> | 2020-10-28 21:53:25 -0400 |
| commit | 1c1c591c81a6fba8199355066a4b4ca00df659b2 (patch) | |
| tree | e2ccf65b6547430cb0b9f8c667c01a5fd05b3af6 /compiler/rustc_interface/src | |
| parent | 31ee872db5aae4750e3da1ca4ed1523c4356947f (diff) | |
| download | rust-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_interface/src')
0 files changed, 0 insertions, 0 deletions
