Commit 87b5230
committed
fix(emception): P0'+P4+P5 — kill stale CDN fallback, LGWIN=24, sort tar entries
P0': stage-core-cdn.mjs now throws immediately if build/cdn is absent
instead of silently falling back to public/cdn or packages/core/cdn.
Stale fallback was root cause of v3.5.0 publishing at 164 MB despite
local npm pack measuring 149.9 MB.
P4: add BROTLI_PARAM_LGWIN=24 to brotliCompress() in generate-bundles.ts.
Increases back-reference window from 4 MB (default 22 bits) to 16 MB
(RFC 7932 max, browser-decodable). Expected saving: ~5-8 MB across
large cache bundles (cache-misc, cache-wasmfs, cache-debug).
P5: sort tar entries by (extension, path) immediately before createTar().
Adjacent structurally-similar files (.a, .pyc, etc.) improve brotli
back-reference density. Expected saving: ~2-4 MB across the tarball.1 parent 357dfb4 commit 87b5230
2 files changed
Lines changed: 23 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
534 | 538 | | |
535 | 539 | | |
536 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
537 | 551 | | |
538 | 552 | | |
539 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 47 | + | |
65 | 48 | | |
66 | 49 | | |
67 | 50 | | |
68 | 51 | | |
69 | 52 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 53 | + | |
| 54 | + | |
74 | 55 | | |
75 | 56 | | |
76 | 57 | | |
| |||
0 commit comments