Commit 42d0efe
committed
Optimize fixpoint batch handling with single BFS expansion
Instead of calling apply_init_delta (which runs BFS) for each entry
in a batch, collect all new roots first and run a single BFS expansion.
Before: Batch of N roots → N separate BFS operations
After: Batch of N roots → 1 BFS with N-element frontier
This matches how the fixpoint initialization already works.
Note: The main CMT processing overhead (~2.5s) comes from other
combinators (flatMaps, joins), not the fixpoint. The fixpoint only
receives 13 batch updates vs 600K+ individual deltas before batching.1 parent ed29f4d commit 42d0efe
1 file changed
+26
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1087 | 1088 | | |
1088 | 1089 | | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1093 | 1111 | | |
1094 | | - | |
1095 | 1112 | | |
1096 | 1113 | | |
| 1114 | + | |
1097 | 1115 | | |
1098 | 1116 | | |
1099 | 1117 | | |
1100 | 1118 | | |
1101 | 1119 | | |
1102 | | - | |
1103 | 1120 | | |
1104 | 1121 | | |
1105 | 1122 | | |
| |||
0 commit comments