Commit 607b858
committed
Auto merge of rust-lang#70803 - arlosi:hash-regression, r=eddyb
Fix performance regression in debuginfo file_metadata.
Fixes performance regression caused by rust-lang#69718.
Finding the `SourceFile` associated with a `FileName` called `get_source_file` on the `SourceMap`, which does a linear search through all files in the `SourceMap`.
This resolves the issue by passing the `SourceFile` in from the caller (which already had it available) instead of the `FileName`
Fixes rust-lang#70785.File tree
3 files changed
+10
-11
lines changed- src/librustc_codegen_llvm/debuginfo
3 files changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
| 764 | + | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
768 | 768 | | |
769 | | - | |
770 | | - | |
771 | | - | |
| 769 | + | |
| 770 | + | |
772 | 771 | | |
773 | 772 | | |
774 | 773 | | |
| |||
2331 | 2330 | | |
2332 | 2331 | | |
2333 | 2332 | | |
2334 | | - | |
| 2333 | + | |
2335 | 2334 | | |
2336 | 2335 | | |
2337 | 2336 | | |
| |||
2440 | 2439 | | |
2441 | 2440 | | |
2442 | 2441 | | |
2443 | | - | |
| 2442 | + | |
2444 | 2443 | | |
2445 | 2444 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| |||
0 commit comments