-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening 24 MB PDF file with graphics takes very long and 100 % CPU usage #18307
Comments
How do you want to render instantly a file containing 51 jpeg images 9933x7016 !!!? |
Thank you for the analysis.
;-)
Should this be reported to Firefox to be at least on par with Chrome?
Understood. Feel free to close. I wonder what machine the creator of the document used five years ago. The document properties say:
I guess I need to switch to Microsoft Windows. |
I'm on Windows 11 and it's slow. |
I guess you need Microsoft Windows 10 or 7. :P Thank you for the hint with the printing to PDF.
Any idea, which decoder is used right now on GNU/Linux (GNOME Shell with X.Org here)? As written, feel free to close. |
If it helps, we have compiled a list of optimization tips for PDF files at https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#what-types-of-pdf-files-are-slow-in-pdfjs-can-i-optimize-a-pdf-file-to-make-pdfjs-faster that could make a significant difference if you're in control of the PDF file. |
@paulmenzel 256GB RAM, 4Gbps connection, downloading + rendering this file took |
@MrSuddenJoy, thank you for the feedback. I’d have assumed it’s limited by the CPU resources. Can you share your CPU model and environment and version too, please, so I can reproduce? |
@paulmenzel this is the most probable cause. But question remains: why someone would limit
|
pdf.js is part of the Firefox browser, so runs on desktop with all kinds of configurations. |
|
I don't really know how it's possible... I've myself a desktop machine (Windows 11) with 64Gb RAM and 32 cores (3.5gHz). |
@calixteman Im using |
@MrSuddenJoy That's impossible due to physics. You only have a 4Gbps downlink, not 10Gbps. Downloading a 24MB file will take 47ms (do the math: Re-measure it again, or else your results are |
Attach (recommended) or Link to PDF file here:
425429.pdf from https://www.osce.org/files/f/documents/f/5/425429.pdf, 24 MB, MD5: 63f989b7058bb5bc2a48319ab3ca9139
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
It should work
What went wrong? (add screenshot)
It didn’t render instantly.
PS: Evince 46.3 also has trouble rendering this.
The text was updated successfully, but these errors were encountered: