Skip to content

Reuse physical image digests across CPA export occurrences - #1144

Merged
trissim merged 1 commit into
mainfrom
perf/reuse-physical-image-digests
Oct 8, 2026
Merged

trissim merged 1 commit into
mainfrom
perf/reuse-physical-image-digests

Conversation

@trissim

@trissim trissim commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

CPA export reread and hashed the same physical image for each independent image-number/channel occurrence. ImageFileRevision now owns a lazy MD5 fact with the existing physical identity and timestamp key and a 4096-entry bound. The source projection uses that fact at the original digest boundary, after header, geometry and frame validation. Header-only consumers do no new content reads; failed, stale or changing first reads are not cached.

The saved QC domain has 120 source cells backed by 10 TIFFs. One saved-file replay found 99.8 ms less read/hash work, with all 120 MD5 values equal to the saved SQLite outputs. This is local replay evidence, not a measured pipeline gain; fresh combined end-to-end qualification remains pending.

Validation: the serialization and CPA export suite produced 120 passes plus five stale source-root fixture failures. Exact original Gitblob modules reproduced all five failures. Declaring source_workspace_root on the existing fixture restored those five tests (5 passes); eight new controls cover lazy reuse, same-size rewrite with restored mtime, replacement/deletion/recreation, stale and changing reads, uncached read errors, cross-axis/channel identity and frame-error order. Both original failure logs are retained.

The PolyStore gitlink also advances to merged commit 3938236 from PolyStore PR #31, bringing compact runtime encoding to development checkouts. The PyPI requirement floor remains unchanged until 0.3.4 is published.

This follows the earlier same-occurrence projection repair (#946); it reuses the physical fact across independent occurrences. No new export cache, authority or eager digest path is introduced.

Closes #1143

Keep lazy content facts on ImageFileRevision, reject unstable first reads, and retain CPA source projection validation order. Update obsolete source-root test fixtures and pin the merged PolyStore compact transport fix. Refs #1143.
Copilot AI balanced review requested due to automatic review settings October 8, 2026 13:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim
trissim merged commit 3b173fd into main Oct 8, 2026
3 of 37 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.

Reuse physical image digests across CPA export occurrences

2 participants