mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
The scanned, black-and-white document at https://bugzilla.mozilla.org/show_bug.cgi?id=835380 doesn't benefit from the critical GRAYSCALE_1BPP optimization because the optimization is skipped if `needsDecode` is set. This change addresses that, and reduces both rendering time and memory usage for that document by almost 10x.