Skip to content

PdfWriter.append is quadratic in the accumulated named-destination count #3977

Description

@yazminecepedaAIC

Summary

Merging many PDFs that each carry named destinations is quadratic in the accumulated number of destinations, rather than linear in the input size. On a 160-file merge with 250 named destinations each (40,000 total), named-destination handling accounts for 99.8% of merge time — 59.0s out of 59.1s.

The behaviour is unchanged between 5.1.0 and 6.16.1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions