Repository navigation
perf(tracker): a tracker sync of a few rows took seconds, and the fix - #407
Merged
Merged
Conversation
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>
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.
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 fullsyncTrackeron a new store and counts every commit by caller;interleave.shruns before and after in turns so both share the disk's load.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
pnpm docs:check, markdownlint, biome onperformance/tracker: pass.🤖 Generated with Claude Code