SignatureKit

Smaller pdf-core WebAssembly module

2026-11-18T13:26:35.317Z

Smaller pdf-core WebAssembly module

The release wasm module (reader, writer and renderer) is about 13% smaller: 1,249,882 → 1,087,037 bytes raw, 434 KB → 423 KB gzip, 335 KB → 328 KB brotli. Size wins come from Binaryen wasm-opt -O3 in the build (pinned binaryen 130), CFF standard-string zlib packing, Standard 14 width-row dedupe, AGL codepoints as u16, dropping production format! / Debug format strings, Latin-1 case folding instead of Unicode to_lowercase, and collapsing stable-sort monomorphizations. Glyph/AGL hot tables stay as plain static data so text extraction stays within noise of the baseline. The wasm budget test is 1072 KiB.

Menu