mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-14 10:01:17 +00:00
rect() resolved every entry of a /MediaBox or /CropBox array before checking it had four, so one long box array shared by many pages was resolved and collected once per page request; it now matches exactly four entries first. The pixel comparator walked every row of a zero-width image, so matching headers of enormous height took that long with no pixels; an empty image now compares at once.