Skip to content

Very high memory allocation / consumption #330

Answered by mara004
s-kruschel asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the report.
I can confirm there's a substantial peak in RAM usage when running

pypdfium2 extract-text "27754_Challenges_in_interpreta.pdf" --pages 4

with either --strategy range or --strategy bounded, while there is no peak with --pages 1-3.
However, this isn't a bindings issue. Please re-submit to pdfium instead.

Also, I think you are indeed on the wrong track with your "workaround". I would refrain from messing with deletion of some objects on certain conditions, as the peak occurs mainly when loading the page, whereas loading the textpage or extracting text does not cause further peaks (you can try this in a python console).
What is a bit concerning, page.close() (or other …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mara004
Comment options

You must be logged in to vote
2 replies
@mara004
Comment options

@mara004
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants