Skip to content

PI: Making pypdf as fast as pdfrw#2086

Merged
MartinThoma merged 17 commits intomainfrom
as-fast-as-pdfrw
Aug 26, 2023
Merged

PI: Making pypdf as fast as pdfrw#2086
MartinThoma merged 17 commits intomainfrom
as-fast-as-pdfrw

Conversation

@Lucas-C
Copy link
Copy Markdown
Member

@Lucas-C Lucas-C commented Aug 13, 2023

This is a follow-up of sarnold/pdfrw#15 (comment)

Using the code from this branch, pypdf_watermarking is as fast as pdfrw_watermarking().

pypdf was made faster by avoiding unnecessarily calls to __parse_content_stream().
In order to achieve that, some calls to PageObject._push_pop_gs() were removed in PageObject._merge_page() and PageObject._merge_page_writer()

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

Labels

nf-performance Non-functional change: Performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants