Skip to content

perf: make event-head upgrades lazy#77

Merged
steipete merged 2 commits into
mainfrom
codex/lazy-event-heads
Jul 4, 2026
Merged

perf: make event-head upgrades lazy#77
steipete merged 2 commits into
mainfrom
codex/lazy-event-heads

Conversation

@steipete

@steipete steipete commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • replace the eager message-event head backfill with an atomic lazy trigger
  • use a compact WITHOUT ROWID head table and skip unchanged head rewrites
  • centralize message-row projection, scanning, and mention hydration across read paths
  • add an explicit schema v5 migration for databases created by the released v4 schema

Verification

  • GOWORK=off go test ./...
  • large-archive v3-to-v5 open completed in under 100 ms with zero eager head rows
  • structured Codex autoreview: clean, no accepted/actionable findings

@clawsweeper

clawsweeper Bot commented Jul 4, 2026

Copy link
Copy Markdown

ClawSweeper status: review started.

I am starting a fresh review of this pull request: perf: make event-head upgrades lazy This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete steipete merged commit 1d54439 into main Jul 4, 2026
14 checks passed
@steipete steipete deleted the codex/lazy-event-heads branch July 4, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants