Skip to content

Grok sync in linear time - #17

Merged
lukemaj merged 3 commits into
integration/mac-observerfrom
task/2-grok-perf
Sep 24, 2026
Merged

lukemaj merged 3 commits into
integration/mac-observerfrom
task/2-grok-perf

Conversation

@lukemaj

@lukemaj lukemaj commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Component PR into integration/mac-observer: the Grok Build adapter's full sync was quadratic on real data (every session import rescanned every session's updates file for parent dispatch records: on this Mac 150 of 1,129 sessions in about 50 minutes). It now builds one parent index per operation (including source-scoped syncs), parses each session once, skips unchanged sessions, and still reconciles response models when only events change.

Real Grok tree on this Mac (1,129 sessions, 1.4 GB of update logs): full sync 26.6 s, unchanged re-sync 3.1 s.

Refs #2.

Proof

Candidate 78e38cc on integration ea27cac: python3 -m unittest discover -s tests OK, including parse-count tests.

Review

Independent Luna reviews over three rounds through Model Router jobs ao-grok-perf-1 to ao-grok-perf-3; the last review: APPROVE, no findings.

🤖 Generated with Claude Code

lukemaj and others added 3 commits September 24, 2026 06:11
… sync (#2)

A full sync of this Mac's 1,129 Grok sessions (1.4 GB of update logs) went
from an estimated hours (150 sessions in 50 minutes) to 22.7 seconds.
Implemented through Model Router job ao-grok-perf-1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nchanged sessions not reparsed (#2)

Real Grok tree: full sync 26.6 s, unchanged re-sync 3.1 s. Addresses the
review of a3b41e6 through Model Router job ao-grok-perf-2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses the review of b730bcf through Model Router job ao-grok-perf-3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lukemaj
lukemaj merged commit 58e2ec4 into integration/mac-observer Sep 24, 2026
1 check passed
@lukemaj
lukemaj deleted the task/2-grok-perf branch September 24, 2026 04:12
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