Files
pdf.js/external/bcmaps/90ms-RKSJ-H.bcmap.br
Jonas Jenwald 06e4ecb51b [api-major] Compress the binary CMap files with Brotli
While the binary CMap format is fairly efficient already, by also compressing them maximally with Brotli we can reduce their size even further.
The decompression is done on load in the worker-thread, and thanks to the existing caching it only needs to happen *once* per file. By utilizing the `BrotliStream` class all builds/environments can use these smaller files, and in e.g. Firefox (which supports native decompression) even the largest binary CMap files are decompressed in *under* `1` millisecond.

*Note:* This reduces the size of the `gulp mozcentral` bundle by `320076` bytes, i.e. over 312 kilo-bytes.
2026-11-12 18:46:24 +01:00

597 B