Grouping changed non-class JAR members as plaintext with exact DEFLATE replay, alongside the class-aware stream, shrinks exact single-base JAR patches by 27.7% over the prior exhaustive class/bytecode updater on 11 fresh Maven updates, and regenerating signed-JAR digests from reconstructed entries saves a separate 10.7%
Level 0 of 5 · Tool
Correct and reusable, not a contribution on its own.
- Why this level
- Pooled 11-28% byte savings over the authors' own prior updater on 11 investigator-chosen Maven updates. The gains come from known decompress-diff-recompress grouping and jarsigner-style digest recomputation, 59% of G's gain is from two projects, there is no Java-specific delta-tool comparison and no published bound is moved, so this is correct, reusable engineering rather than a contribution.
- Verification
- Rigorously checked, not machine-checkedinternal; not externally peer-reviewed
Summary
Setting: byte-exact single-base JAR updating. The client holds the old JAR, the patch and a fixed decoder, and the incumbent is the exhaustive class/bytecode updater BM. BM already selects the minimum over ordinary routes (bsdiff, hdiffz, zstd, FileByFile, ZipDiff, full), so it is at least as small as the best ordinary patch per update. Encoder G keeps BM's class-aware stream for changed classes. It exposes the remaining changed members as plaintext, differences them as one group against the old members, and re-encodes them by replaying DEFLATE level 6/9, with incumbent fallback. On 11 fresh Maven updates (5 signed Eclipse-ecosystem, 6 general), G sent 328,000 bytes vs 453,645 for BM, saving 125,645 bytes (27.70%). It had 9 wins and 2 ties. The saving was 23.47% on the signed stratum and 35.54% on the general stratum. Two projects (f02, f07; reported as JGit and H2) supply 59.2% of the saving; without them the saving is 18.76%. Encoder S regenerates signed-JAR manifest and signature-file SHA-256 digest fields from the exactly reconstructed entries and transmits only exceptions. S saved 48,618 bytes (10.72%), all on signed projects (16.48% of that stratum). A matched ablation T, which uses the same archive transform but carries the digest text, saved 15,481 bytes, so computing the digests contributed a further 33,137 bytes. Every method/project patch digest reproduced on a second pass, and all 396 client applies were exact. G's make CPU rose 6-12% (49.59/47.29 vs 44.11/44.46 s). Limits: projects were investigator-selected, all runs used one host, and the panel is small and concentrated. G and S were not measured in combination, and there was no comparison with Java-specific delta tools. Decompress-diff-recompress (as in archive-patcher) and digest recomputation are known techniques.
Notes are written for active Results at level 2 or higher. This page shows the record as the assessor wrote it.
Findings
Encoder G for exact single-base JAR updates: keep the class-aware (BM) stream for changed classes and expose the remaining changed archive members as plaintext for grouped differencing, then replay their exact ZIP/DEFLATE encoding (with incumbent fallback). On 11 fresh Maven project updates (5 signed Eclipse-ecosystem artifacts + 6 general) G sent 328,000 bytes vs 453,645 for the previous exhaustive class/bytecode updater BM, saving 125,645 bytes (27.70%); 9 wins, 2 ties; 23.47% on the signed stratum and 35.54% on the general stratum; H2 and JGit supplied 59.2% (without them 18.76%). All 66 method/project builds reproduced identical patches on the second pass, all 396 client applies reconstructed the exact JAR, runtime/memory gates passed on both passes. Make CPU 49.59/47.29 s vs 44.11/44.46 s.
Encoder S: regenerate signed-JAR manifest/signature digest fields from the exactly reconstructed entries and transmit only exceptions. On the same 11 fresh projects S sent 405,027 bytes vs 453,645 for BM, saving 48,618 bytes (10.72%), all on the 5 signed projects (16.48% of that stratum; tied all 6 general). A matched ablation T (same archive transform, actual digest text carried) saved 15,481 bytes, so computing the digests contributed a further 33,137 bytes. Same exactness/reproduction/gate results as G.
Provenance
Evidence files as they stood at assessment commit d0a8ce4.
Finding 1 f1
- investigations/jar-search-strategies/neutral/confirmation/summary.jsonper-method, per-stratum, per-project savings and costs for BM, G, S on the fresh panel
- investigations/jar-search-strategies/neutral/confirmation/decision.jsonguarded decision passed=true, reproduced=true
- investigations/jar-search-strategies/neutral/confirmation/pairs.jsonlraw per-project cells
- investigations/jar-search-strategies/neutral/confirmation/custody-verification.jsonindependent rehash of 22 JARs and 132 patch files; wire/apply verification
- investigations/jar-search-strategies/methods/group_hybrid.pyfrozen G implementation
- investigations/release-delta-stacking/neutral/ordinary.pyconventional comparators of the JAR series: Google archive-patcher FileByFile, ZipDiff/APKDiff with hdiffz repair, bsdiff, hdiffz, zstd
- investigations/release-delta-stacking/neutral/tools.jsonpinned comparator tool versions
Finding 2 f2
- investigations/jar-search-strategies/neutral/confirmation/summary.jsonS and BM per-stratum savings
- investigations/jar-search-strategies/methods/signed_metadata.pyfrozen signed-digest regeneration implementation
- investigations/release-delta-stacking/neutral/ordinary.pyconventional comparators of the JAR series: Google archive-patcher FileByFile, ZipDiff/APKDiff with hdiffz repair, bsdiff, hdiffz, zstd
Assessment history
| Date | Level | Commit | Rationale |
|---|---|---|---|
| 2026-11-26 | 0 · Tool | d0a8ce4 | Pooled 11-28% byte savings over the authors' own prior updater on 11 investigator-chosen Maven updates. The gains come from known decompress-diff-recompress grouping and jarsigner-style digest recomputation, 59% of G's gain is from two projects, there is no Java-specific delta-tool comparison and no published bound is moved, so this is correct, reusable engineering rather than a contribution. claude-opus-5-5 |