-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit 0c33fe2
Auto merge of #121909 - Zoxc:drop-ast-task, r=petrochenkov
Drop AST on a separate thread and prefetch `hir_crate`
This drop AST on a separate thread and prefetches `hir_crate`.
A `spawn` function is added to the `parallel` module which spawn some work on the Rayon thread pool.File tree
4 files changed
+26
-3
lines changed- compiler
- rustc_ast_lowering/src
- rustc_data_structures/src
- sync
- rustc_interface/src
4 files changed
+26
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 | + | ||
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
| |||
454 | 455 |
| |
455 | 456 |
| |
456 | 457 |
| |
457 | - | ||
458 | 458 |
| |
459 | - | ||
459 | + | ||
460 | + | ||
461 | + | ||
462 | + | ||
463 | + | ||
464 | + | ||
465 | + | ||
460 | 466 |
| |
461 | 467 |
| |
462 | 468 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 | - | ||
46 | + | ||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
96 | 107 |
| |
97 | 108 |
| |
98 | 109 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
900 | 900 |
| |
901 | 901 |
| |
902 | 902 |
| |
903 | + | ||
904 | + | ||
905 | + | ||
906 | + | ||
907 | + | ||
908 | + | ||
903 | 909 |
| |
904 | 910 |
| |
905 | 911 |
| |
|
0 commit comments