Repository navigation
perf(sessions): remove redundant snapshot walks - #171964
Merged
steipete merged 1 commit intoOct 14, 2026
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 14, 2026 08:24
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
|
steipete
deleted the
steipete/perf-micro-remaining-freeze-callers-20260919
branch
October 14, 2026 08:41
vincentkoc
added a commit
that referenced
this pull request
Oct 14, 2026
…/plugin-memory-addon-presentation-20261014 * commit 'a8da8c92e3dbb21dd1441a30eb842fcd942e82b6': (52 commits) test(ui): await terminal reconnect fixture readiness (#171945) perf(gateway): retain only the requested ordered session page (#171968) test(gateway): cover automation run-alias placement lifecycle (#139313) fix(ci): retry FRV job listings with smaller pages after GitHub 5xx (#171952) fix(process): prevent false cleanup failures after CLI stdin closes (#171969) test(doctor): cover released updater advisory warnings (#157086) fix(ci): skip Testbox builds for known prose files (#171946) perf(sessions): remove redundant snapshot walks (#171964) fix(ci): skip plugin scaffold build for SDK instructions (#171944) fix(infra): preserve scheduler scope abort state after retirement fix: setup diagnostics can repair state without approval (#171960) perf(usage): avoid per-session admission churn during inventory (#171868) fix(ci): exclude documentation from extension lint scope (#171909) test(gateway): keep runtime-only compat flags out of live gateway config (#171953) docs: document ClawHub install telemetry opt-out (#114376) fix: recover completed chat replies after missed publication (#171766) refactor(ui): decouple session controller types from Lit (#171559) fix(gateway): settle worker reconciliation during busy shutdowns (#171843) fix(ci): ignore protocol prose in bundled check selection (#171908) fix(ui): align replacement lines and highlight inline diff edits (#171935) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 15, 2026
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.
What Problem This Solves
Session commits repeatedly walk already detached internal snapshots and compute predicate columns that no reader consumes, adding main-thread allocation churn.
User Impact
No intended behavior change. Session publication and actor authorization do less work; storage formats, permissions, live authority checks, and public APIs stay unchanged.
Why This Change Was Made
Remove deep freezes while preparing committed entry publications and consuming detached SQLite actor admission/stale-result facts. Delete the actor replica's unused predicate-column cache, including three whole-entry stringify/scanner calls and its obsolete test assertions. SQLite writer and migration predicate derivation retains its existing malformed JSON and duplicate-key behavior.
Contextual ingress already bypasses the principal cache; skip serializing its unused cache key while retaining the live origin check. Prompt-history fingerprints still inspect mutable nested values because in-place mutation detection is a supported contract; existing prepared tool-schema fingerprints remain in use.
Production code: 30 net lines removed. No new cache or compatibility path.
Evidence
git diff --checkpassed; PR CI owns broad validation. No Testbox/Crabbox lease.06bcec02394a4f1815dc80490bc450d860ad9c70; hosted review and both required CI gates passed. No failed CI or reruns.Before/after measurement
Isolated Team sandbox, Node 26.8.2, synthetic 5,000 sessions / 6,000 retained runs, 4,641,595,392-byte agent DB and 11,812,864-byte state DB on both fresh fixtures. Existing allocation harness:
transcript-broadcast-measure.ts --allocations --scenario chat.send --clients 1 --runs 1 --rounds 5 --chunks 100. Baselinefa48c5f72db55f1c0dc127b58e186e31861d4047; candidate06bcec02394a4f1815dc80490bc450d860ad9c70. CPU affinity 64–127, MemoryMax 64G, nice 10 / idle I/O; own HOME/state/temp and loopback ports. Runtime builds were benchmark preparation only.Two counterbalanced pairs (base→head, then head→base on their existing synthetic fixtures), ten measured turns per revision after warmups. All twenty turns completed one tool call/result and fourteen session events. Mean main-isolate sampled allocation below the targeted callers:
Whole-turn mean allocation was 1.253→1.280 GB (+2.1%, sample SD 62/89 MB): neutral within observed run variability, not a whole-turn allocation improvement claim. The first pair rose 7.6%; the reverse-order pair fell 3.2%. Largest positive stack differences were in unchanged SQLite admission fanout/V8 allocation. Mean wall time was 4.543→4.405 s (-3.0%), main-thread CPU 3.456→3.291 s (-4.8%), and GC 73.57→62.24 ms (-15.4%); these are noisy profiled observations, not throughput guarantees. Allocation profiles include objects collected by minor/major GC at 32 KiB sampling.
The contextual-ingress unused cache-key deletion is not exercised by this chat.send fixture. Other stable-stringify work remains, including mutation-sensitive prompt fingerprints. This explicitly requested net deletion lands with neutral aggregate allocation and the targeted walks removed; no new cache or complexity is justified by these numbers.