Commit ed29f4d
committed
Use batch processing for ReactiveFileCollection
Process all files as a single Batch delta instead of individual deltas.
This dramatically reduces the number of updates flowing through reactive
combinators during bulk loading.
Key changes:
- Add process_files_batch to ReactiveFileCollection (emits single Batch)
- Add process_file_silent helper (processes without emitting)
- Update ReactiveAnalysis.process_files to use batch processing
Performance improvement on deadcode-benchmark:
- Before: fixpoint recv=601,563 updates
- After: fixpoint recv=13 updates (batches)
This means downstream combinators process all file data together
instead of handling 600K+ individual updates one at a time.1 parent 2f6ef60 commit ed29f4d
File tree
5 files changed
+50
-33
lines changed- analysis
- reactive
- src
- test
- reanalyze/src
5 files changed
+50
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
491 | | - | |
492 | | - | |
| 490 | + | |
493 | 491 | | |
494 | 492 | | |
495 | 493 | | |
| |||
1104 | 1102 | | |
1105 | 1103 | | |
1106 | 1104 | | |
1107 | | - | |
1108 | | - | |
| 1105 | + | |
1109 | 1106 | | |
1110 | 1107 | | |
1111 | 1108 | | |
| |||
1144 | 1141 | | |
1145 | 1142 | | |
1146 | 1143 | | |
1147 | | - | |
1148 | | - | |
| 1144 | + | |
1149 | 1145 | | |
1150 | 1146 | | |
1151 | 1147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
77 | 98 | | |
78 | 99 | | |
79 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1759 | 1759 | | |
1760 | 1760 | | |
1761 | 1761 | | |
1762 | | - | |
1763 | | - | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
| 1762 | + | |
1769 | 1763 | | |
1770 | 1764 | | |
1771 | 1765 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments