Repository navigation
perf(artifacts): replace quadratic ZIP overlap checks - #1013
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 7, 2026
9 tasks done
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
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.
Large ZIP inventories currently spend quadratic work comparing each entry range with all prior ranges. Upgrade the exact zip.js dependency from 2.8.26 to 2.15.0, which keeps indexed overlap checks and fixes the first indexed release's Buffer-view compatibility issue for REA's file-backed reader. Signature, CRC, and overlap verification remain enabled.
Use tolerant library filename parsing so decoded names reach REA's existing provider-neutral validation unchanged. Unsafe paths still return their typed path constraint rather than a generic library error. Added production inventory regressions cover overlapping entry ranges, encrypted-member observations, corrupt data/CRC, and truncated archives. Existing regressions cover unsafe names and ordering.
Bounded measurements on Node 24.18.0, three alternating pairs each:
0c91f87b4aa49f03eba20fd680492078ab13b4adaf4a8d3d0f431d713a864675.The optimization addresses overlap-check scaling; it does not claim a general small-archive throughput gain. Larger whole-inventory runs were intentionally avoided after the earlier worktree CPU load.
Validation:
npm run build:cached,npm run check:fast,npm run docs:check, and formatting checks passed. The three focused filesartifactZipIntegrity.test.ts,artifactInventoryEntryOrder.test.ts, andartifactProvider.failureDetail.test.tspassed all 20 tests with one worker. Independent Standards and Spec reviews accepted the source. Real Hopper/Ghidra verification was not performed for this archive-only change.Upstream: indexed overlap checks, 2.15.0 release.
Related to #893.