ludic.base: tb_reserve and imap_reserve size a table up front; HandlePool (a slot and a generation, nothing made after hd_pool_new, past its capacity a panic naming it); kept_push is the one declared grow, and every growth path left says its bound in @alloc_ok
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f2dd27f443
commit
2d1d06899e
17 changed files with 199 additions and 26 deletions
|
|
@ -59,7 +59,7 @@ export function tb_changed_since<T>(tb: Table<T>, since: int, out: words) -> int
|
|||
if tb.blk[b] <= since { continue }
|
||||
var end = b * 64 + 64
|
||||
if end > tb.n { end = tb.n }
|
||||
for r in b * 64 .. end { if tb.changed[r] > since { push(out, r) } }
|
||||
for r in b * 64 .. end { if tb.changed[r] > since { kept_push(out, r) } }
|
||||
}
|
||||
return len(out)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue