Repository navigation
perf(life15): lighter wake-ups and an in-place worker step [LIFE15-Lighter-070] - #91
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Six speed-ups toward 1 month/s. None changes a result: every fingerprint passes unchanged.
advanceValleyruns a state forward in place; the worker uses it,stepValleystays pure. The view copy snapshots the followed person's memory itself.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:checkpasses. Not checked in the browser (preview pane hidden).