You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that, while we do need to walk the page tree (maybe) in order to get to a particular page by its index, we shouldn't be actually parsing all the pages if not specifically requested.
The text was updated successfully, but these errors were encountered:
Ah. Turns out that instantiating PDFPage is not really expensive at all. This is more of an API problem, people should not use get_pages in this way if they are going to call it repeatedly. I will close this, not really an issue.
See ocrmypdf/OCRmyPDF#1378
The issue is that, while we do need to walk the page tree (maybe) in order to get to a particular page by its index, we shouldn't be actually parsing all the pages if not specifically requested.
The text was updated successfully, but these errors were encountered: