Skip to content

Fix launch blockers: install URL, savings measurement, large-folder load, 0.3.0 - #11

Merged
kiranscript merged 4 commits into
mainfrom
fix/launch-blockers
Nov 19, 2026
Merged

kiranscript merged 4 commits into
mainfrom
fix/launch-blockers

Conversation

@kiranscript

@kiranscript kiranscript commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Fixes needed before a public pre-release.

Install command 404. README, docs/install.md and the website told people to download https://kiranscript.github.io/zipxp/install.ps1, but the Pages workflow was removed in a0cfe6d and Pages isn't enabled, so the command fails. Releases now attach scripts/get.ps1 as zipxp-get.ps1, and the docs download it from releases/latest/download/zipxp-get.ps1. The command only works once a release that includes the file exists (see below).

Savings after a restore were overstated (#2). Mutator measured allocation through the still-open mutation handle. #4 fixed this, but it was merged into polish-repo and never reached main. The mutator now closes the handle and measures on a fresh handle, and claims no saving if the file changed in between. New checks run compress → restore round trips at 65,537, 100,003 and 262,147 bytes and require them to net to zero. The 65,537-byte check failed before the fix and passes after.

Background load on large folders. Measured with the real engine on a generated 50,000-file folder (10,000 compressible files of 100–160 KB, on an SSD):

Before After
Rescan of an unchanged folder 10 s CPU, ~1 GB read, 92 MB written 5 s CPU, 70 MB read, nothing written
Rescan interval with a working watcher 2 min 30 min
Auto-compression, 3 min 69 files/min, 70 s CPU, 10.3 GB read 109 files/min, 12 s CPU, 359 MB read
Longest wait for a UI command during that run 8.2 s 23 ms (no rescan fell in the window)

Changes:

  • The worker looked up the file for each job by loading and parsing every observation (Engine.cs). Store.Observed now uses an in-memory identity index that is rebuilt on each scan.
  • Rescans reuse the stored sampling estimate while a file's identity, length and last-write time are unchanged.
  • SaveScan writes only added, changed and removed rows instead of deleting and reinserting everything.
  • The safety rescan runs every 30 minutes, since watcher events already trigger a scan within seconds. A folder whose watcher can't start keeps the 2-minute rescan.

Still open, and not blocking: scans still hold the engine lock (about 5 s on this folder), and the window's 3-second refresh still loads every observation (about 0.25 s CPU).

Stale release. v0.2.0 was built before the React interface (#8), #9 and #10. This bumps the version to 0.3.0 and moves the unreleased changelog entries under [0.3.0]. After merging, push a v0.3.0 tag to build the release.

Checked locally

  • Windows build with -warnaserror: 0 warnings, 0 errors.
  • ZipXP.Checks: 83 passed. New checks cover the round trips, estimate reuse, and renames and deletions surviving the diffed writes.
  • UI unit tests: 33 passed. npm run build is clean.

🤖 Generated with Claude Code

- Measure allocation on a fresh handle after closing the mutation
  handle, so restores no longer overstate growth for sizes that are not
  cluster-aligned (#2). Adds round-trip checks at 65,537, 100,003 and
  262,147 bytes; the first failed before the fix.
- The documented install command pointed at the GitHub Pages site,
  which is no longer deployed. Releases now attach scripts/get.ps1 as
  zipxp-get.ps1 and the docs download it from releases/latest.
- Bump to 0.3.0 and move the unreleased changelog entries under it, so
  the next release includes the React interface and folder suggestions.
- Drop the known-issue notes for #2 from README, safety, validation and
  the website.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying zipxp with  Cloudflare Pages  Cloudflare Pages

Latest commit: a1bbb2b
Status: ✅  Deploy successful!
Preview URL: https://55173e4d.zipxp.pages.dev
Branch Preview URL: https://fix-launch-blockers.zipxp.pages.dev

View logs

On a 50,000-file test folder the worker loaded and parsed every
observation for each file it compressed, and every 2-minute rescan
re-sampled every candidate (~1 GB read) and rewrote the whole
observations table (~92 MB), even with auto-compression off.

- Store.Observed looks up the latest scan's file by identity through an
  in-memory index rebuilt on each scan, instead of loading every row.
- Rescans reuse the stored sampling estimate while a file's identity,
  length and last-write time are unchanged.
- SaveScan writes only added, changed and removed observations.
- The safety rescan runs every 30 minutes; watcher events still trigger
  scans within seconds. Folders without a watcher keep 2 minutes.

Results on the same folder: rescan 70 MB read and nothing written
instead of ~1 GB and 92 MB; a 3-minute auto-compression run used 12 s
CPU instead of 70 s and did 109 files/min instead of 69. Adds checks for
estimate reuse and for renames and deletions surviving the diffed writes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kiranscript kiranscript changed the title Fix launch blockers: install URL, savings measurement, 0.3.0 Fix launch blockers: install URL, savings measurement, large-folder load, 0.3.0 Nov 19, 2026
kiranscript and others added 2 commits November 19, 2026 12:01
The site is deployed on Cloudflare Pages; the old GitHub Pages address 404s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Copy on the install snippet copied the optional "-StartAtLogin
  -Launch" re-run too, so pasting it installed twice. Lines marked
  data-nocopy are now left out.
- 404.html used the old GitHub Pages /zipxp/ base path, so it had no
  styles or working home link on Cloudflare Pages.
- Remove the #2 known-issue callout and say allocation is measured after
  the handle closes.
- Describe the React/WebView2 interface instead of WPF only, update the
  check count to 83, mention the WebView2 runtime in the quickstart, and
  point the closing call to action at the installer, not dotnet run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kiranscript
kiranscript merged commit c1efbd7 into main Nov 19, 2026
2 checks passed
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