Commit 1c148db
committed
IxVM kernel: route list_lookup through list_drop
`list_lookup(list, idx)` previously walked the list inline (Cons + match
+ recurse). Replacing the body with `head(load(list_drop(list, idx)))`
lets `list_drop`'s memo dedup sublist pointers — content-addressed
intermediates collapse across all lookups that pass through them.
`lake exe check`:
* Nat.add_comm: 54_670_728 → 54_350_107 FFT (-0.6%)
* `_private....utf8DecodeChar?.helper₃`: 38_696_601_688 → 37_793_682_359 FFT (-2.3%)1 parent 1141f2d commit 1c148db
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 55 | + | |
| 56 | + | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
0 commit comments