Skip to content

Conversation

@yuval-peleg-levy-ai21
Copy link

Hey,
I have a project in which I insert a lot of HTML boxes. I noticed that it is very slow, and after profiling figured
doc.get_page_images, doc.get_page_xobjects, doc.get_page_fonts are to blame.

Therefore, I'd like to propose maintaining a counter in the Page class to save those calls.
In my local machine it saved 90% of the compute time.

This PR replaces #4786

@github-actions
Copy link
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant