Repository navigation
Commit 5a1a375
perf(observe): count fan-in by walking the trimmed dep list, not a per-pass bracket
CodSpeed bisect (two scratch branches) put the whole create1to1 -5.8% on
begin/endFanInPass + passFanIn++ — two cross-module calls per recompute
plus a module-variable increment per first-touch link — which also cost
4-6 points of the shape wins on update1to1 and memoTree. The fan-out
increment in insertSubs is free. After trimStaleDeps the dep list IS the
pass's distinct sources: one walk there gives the exact count with no
module state and no save/restore around nested pulls.
Co-authored-by: Claude via Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>1 parent 10b3c36 commit 5a1a375
6 files changed
Lines changed: 1177 additions & 1127 deletions
File tree
- .changeset
- documentation
- solid-2.0
- packages/signals/src/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments