Commit 6bdae9e
committed
Auto merge of rust-lang#78508 - wesleywiser:optimize_visit_scopes, r=petrochenkov
[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.
cc `@rylev`1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1725 | 1725 | | |
1726 | 1726 | | |
1727 | 1727 | | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1732 | 1731 | | |
1733 | 1732 | | |
1734 | 1733 | | |
| |||
0 commit comments