Commit 1c1c591
committed
[resolve] Use
This improves the performance of the `resolve_crate` function by 30% for
a very large single file crate with auto-generated C bindings.unwrap_or_else instead of unwrap_or in a hot path1 parent 31ee872 commit 1c1c591
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