Commit d81126f
committed
Auto merge of #129761 - saethlin:cacher-location, r=<try>
Rub come caching on caller_location
Inspired by the huge perf wins from making track_caller a no-op: #129704, I started poking around and it looks like we have no deduplication of identical `panic::Location` allocations.
Nora says I can use a query here, but I'm scared of query overhead so I'm going to perf something very crude first.
r? `@ghost`File tree
2 files changed
+14
-2
lines changed- compiler
- rustc_const_eval/src/util
- rustc_middle/src/ty
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| |||
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
71 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
72 | 81 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
| 1298 | + | |
| 1299 | + | |
1298 | 1300 | | |
1299 | 1301 | | |
1300 | 1302 | | |
| |||
1525 | 1527 | | |
1526 | 1528 | | |
1527 | 1529 | | |
| 1530 | + | |
1528 | 1531 | | |
1529 | 1532 | | |
1530 | 1533 | | |
| |||
0 commit comments