mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:35:21 +00:00
clean_replacements extended the affected set with the whole open-span stack for every changed operator, so nesting depth times changed operators was the work, and both come from the file. A change now marks only the innermost open span, and a span passes the mark to its parent when it closes (or at the end of the stream), so each operator and each span costs constant work. The spans found affected are the same.