Commit 66f8dd1
committed
Auto merge of rust-lang#110069 - ndrewxie:issue-104212-fix, r=cjgillot
Switched provisional evaluation cache map to FxIndexMap, and replaced map.drain_filter with map.retain
Switching ProvisionalEvaluationCache's map field from FxHashMap to FxIndexMap was previously blocked because doing so caused performance regressions that could be mitigated by the stabilization of drain_filter for FxIndexMap (rust-lang#104212). However, the only use of drain_filter can be replaced with a retain, so I made the modification and put in a PR to see if this causes a performance regression as well.
This PR is part of a broader effort (rust-lang#84447) of removing iteration through FxHashMaps, as the iteration order is unstable and can cause issues in incremental compilation.1 file changed
+9
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 5 | | |
12 | 6 | | |
13 | 7 | | |
| |||
32 | 26 | | |
33 | 27 | | |
34 | 28 | | |
35 | | - | |
36 | | - | |
| 29 | + | |
37 | 30 | | |
38 | 31 | | |
39 | 32 | | |
| |||
2782 | 2775 | | |
2783 | 2776 | | |
2784 | 2777 | | |
2785 | | - | |
| 2778 | + | |
2786 | 2779 | | |
2787 | 2780 | | |
2788 | 2781 | | |
| |||
2930 | 2923 | | |
2931 | 2924 | | |
2932 | 2925 | | |
2933 | | - | |
2934 | | - | |
2935 | | - | |
2936 | | - | |
2937 | | - | |
2938 | | - | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
2939 | 2933 | | |
2940 | 2934 | | |
2941 | 2935 | | |
| |||
0 commit comments