Skip to content

polish(reconcile): throttle back-to-back sweeps, document the sync call site - #38

Merged
JeanBaptisteRenard merged 1 commit into
mainfrom
polish/reconcile-throttle
Jun 4, 2026
Merged

polish(reconcile): throttle back-to-back sweeps, document the sync call site#38
JeanBaptisteRenard merged 1 commit into
mainfrom
polish/reconcile-throttle

Conversation

@JeanBaptisteRenard

Copy link
Copy Markdown
Collaborator

Follow-up to #29 — the two non-blocking review notes:

  • Throttle (1s) on reconcileCacheFromFilesystem: loadProjects() fires get-projects twice per sidebar paint (showArchived false/true via Promise.all), running the stat sweep back-to-back. The second pass was idempotent but wasted; anything landing inside the window is covered by the live watcher.
  • Comment at the call site noting the reconcile is synchronous, so the missing await next to the cold-start branch's await populateCacheViaWorker() is intentional.

task check green on the exact diff (lint + full suite).

…ll site

Review follow-ups: loadProjects() fires get-projects twice per sidebar
paint (showArchived false/true), running the reconcile sweep back-to-back;
a 1s throttle skips the redundant second pass while the live watcher
covers anything landing inside the window. Also note at the call site
that the reconcile is synchronous, so the missing await next to the
cold-start branch's 'await populateCacheViaWorker()' is intentional.
@JeanBaptisteRenard
JeanBaptisteRenard merged commit 4046c67 into main Jun 4, 2026
7 checks passed
@JeanBaptisteRenard
JeanBaptisteRenard deleted the polish/reconcile-throttle branch June 4, 2026 16:05
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