Skip to content

Adopt lazy PolyStore NGFF imports for fresh execution servers - #187

Merged
trissim merged 3 commits into
mainfrom
codex/perf-lazy-ome-zarr
Sep 29, 2026
Merged

trissim merged 3 commits into
mainfrom
codex/perf-lazy-ome-zarr

Conversation

@trissim

@trissim trissim commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Problem and resulting behavior

Every fresh OpenHCS execution server imports the PolyStore Zarr backend during registry setup, even when the pipeline uses disk storage. The previous PolyStore revision loads OME-Zarr and Dask at module import, adding about 0.64 seconds to each fresh connection. This PR updates the submodule to PolyStore PR #15, which loads NGFF code only when a Zarr operation needs it. See PolyStore issue #14. Stacked on OpenHCS #186.

Evidence

The same OpenHCS integration code ran the official30 CPU-only 1w_1t suite with a fresh client-owned server for every observation. All 30 cases succeeded; all 110 produced files matched byte-for-byte.

Sum over 30 (seconds) Control Candidate
Other measured time (total - compile - execute) 88.976 67.294
Per-observation total 260.928 240.582
Full CLI wall time 283.613 263.415

Every case spent less time outside server jobs, median -0.731 seconds. Cold server-module import fell 1.523 → 0.900 seconds and three fresh connections fell about 1.81 → 1.17 seconds. Compilation and execution job times varied; this PR makes a startup/total-time claim only. The retained CSVs, figures, reproduction command, and native CP reference are in benchmark/results/perf_lazy_ome_zarr_20260929/.

Validation: 142 PolyStore Zarr/NGFF/FileManager tests passed. The isolated OpenHCS PR checkout passed 43 Zarr-path unit/integration tests, with 2 skipped. The full benchmark used the ordinary ZMQ execution path.

@trissim
trissim marked this pull request as ready for review September 29, 2026 13:39
@trissim
trissim changed the base branch from codex/perf-coloc-step-cache to main September 29, 2026 17:54
Use the merged PolyStore main commit containing OpenHCSDev/PolyStore#15 and the latest ROI codec fix. Focused local validation: 138 PolyStore Zarr/ROI tests and 20 OpenHCS source/Zarr tests passed.
Resolve the PolyStore pointer against merged OpenHCSDev/PolyStore#15. Focused OpenHCS source/Zarr tests pass on the combined tree (20 passed).
@trissim
trissim merged commit 4958644 into main Sep 29, 2026
25 of 35 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