Skip to content

perf(tracker): a tracker sync of a few rows took seconds, and the fix - #407

Merged
leemour merged 1 commit into
mainfrom
perf/tracker-sync-writes
Nov 25, 2026
Merged

leemour merged 1 commit into
mainfrom
perf/tracker-sync-writes

Conversation

@leemour

@leemour leemour commented Nov 25, 2026

Copy link
Copy Markdown
Member

Task

cli-core #3336: a tracker sync of a few rows took seconds (linear-cli #17's strict fake ran past CI's 15 s limit). This records the measurement behind the fix in WireCatLabs/cli-core#3348.

What

  • performance/tracker/sync-writes/README.md: why it was run, setup, results, what it showed, what was not measured.
  • bench.test.ts: times one full syncTracker on a new store and counts every commit by caller; interleave.sh runs before and after in turns so both share the disk's load.
  • A link from performance/tracker/README.md, beside linear-rivals.

Headline: the strict fake's 8 kinds × 3 rows went from 79 commits to 38 and 354 → 214 ms (median of 5, in turns, busy disk); 2,000 issues from 101 commits to 53. On tmpfs both take tens of milliseconds: the cost is the commit waiting for the disk.

Testing

  • Numbers checked against the raw runs by a second reviewer.
  • pnpm docs:check, markdownlint, biome on performance/tracker: pass.

🤖 Generated with Claude Code

Why: linear-cli's sprint tests (linear-cli #17) ran a full sync over the
strict fake past CI's 15 s limit; cli-core #3336. The benchmark counts the
commits of one syncTracker and times it on disk, on tmpfs and with
synchronous=NORMAL, before and after cli-core's one-transaction-per-page
change.

The strict fake's 8 kinds of 3 rows: 79 commits to 38, 354 to 214 ms on a
busy disk in turns; 2,000 issues: 101 commits to 53. On tmpfs both take
tens of milliseconds: the cost is the commit waiting for the disk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit a669ce4 into main Nov 25, 2026
1 check passed
@leemour
leemour deleted the perf/tracker-sync-writes branch November 25, 2026 04:25
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