Skip to content

perf(life15): lighter wake-ups and an in-place worker step [LIFE15-Lighter-070] - #91

Merged
NeoLorenzo merged 1 commit into
mainfrom
life15-lighter-wakes
Oct 28, 2026
Merged

NeoLorenzo merged 1 commit into
mainfrom
life15-lighter-wakes

Conversation

@NeoLorenzo

Copy link
Copy Markdown
Owner

Six speed-ups toward 1 month/s. None changes a result: every fingerprint passes unchanged.

  • Exchanges skip group members who are dead or out of talking distance, and copy back only changed views.
  • Looking around scans nearby chunks without temporary lists; only walkers have their position computed from their route.
  • Route chunk crossings use one reused buffer.
  • The wake-up queue cancels lazily (marks entries, drops them at the front or when they outnumber the rest).
  • New advanceValley runs a state forward in place; the worker uses it, stepValley stays pure. The view copy snapshots the followed person's memory itself.
  • The daily summary counts known places without copying.

Measured in Node on the canonical forty (seed 20260813), run as the worker runs at 1 month/s: days 50–59 take 175–200 ms per simulated day against 235–275 ms on main (~27% faster, about 4.2 → 5.7 days/s). GC falls from ~46 to ~29 ms/day. Walk decisions are now ~60% of a day and the next target; the hut-building week is recorded as a question for later.

New tests: advancing in place equals stepping copies; view copies of an in-place run equal those of a pure run. npm run agent:check passes. Not checked in the browser (preview pane hidden).

@NeoLorenzo
NeoLorenzo merged commit 98ba2ad into main Oct 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant