Repository navigation
Reduce Month calendar, drawer and search latency at 60 and 10,000 tasks - #695
Merged
Merged
Conversation
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.
Refs #602
Month now reads each week's available space before writing event bars and overflow buttons. The dropdown keeps its localized accessible name. Calendar date labels reuse the app's existing formatter. The task drawer builds forward lookups only for its own links and attaches its configured CodeMirror editor in one DOM write. Search immediately submits pasted or bulk-inserted text and clears, while individual keystrokes keep their existing debounce.
Chromium results
Baseline
cec62131afb077f85ee35b38138f8be6d7a84bccand candidated83ce37780ccb46a19540c214b39100cdab01756, both loopback e2e builds. Each cell is median / nearest-rank p95 in milliseconds across 15 paired rounds at each size. At this sample size p95 is the maximum. Build order reversed each round. The first five rounds shared one Chromium process. That process exited before recording the next sample, so the remaining ten rounds each used a fresh Chromium process. All completed rounds are included.Chromium 149.0.7827.55, 1280 × 800, en-US, UTC, reduced motion, service workers blocked, fixed date 2026-11-04. Cold is the first workflow in a fresh browser context. Warm is a reload in that context followed by the same workflow. The calendar opens after Upcoming. Each interaction includes reaching its DOM target and two animation frames. Both filters insert an entire query with Playwright
fill(). These timings cover the demo repository. They do not measure external storage latency or typing character by character.60 tasks
10,000 tasks
At 10,000 tasks, cold Month improved by 63 ms at the median and 626 ms at p95. Warm drawer opening improved by 14 ms at the median and 165 ms at p95. The cold app-open median was within 1 ms, but its p95 rose by 2,088 ms. At 60 tasks, warm Upcoming was 10 ms slower at the median. The tables include these controls and the complete project-count workflows.
Verification
Reproduce
Use the same machine, Chromium version and two idle loopback ports. From a checkout that has both commits, run the following in Bash. Each round runs serially at both fixture sizes.
For the checks, run
rpnpm test,rpnpm run typecheck,rpnpm run lint,rpnpm run build,rpnpm run build:self-hostedandrpnpm run import:buildin the candidate checkout. Run these browser checks against its pulled e2e build.