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
Rendering slowing down from 300ms to >3000 in Firefox #6977
Comments
Looks like it's related to the version of the FF. Can you try it in the latest FF Nightly? |
Looks like it was fixed in FF45 (currently beta) by something from: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a523d4c7efe2f43dd6b25a176c07b729918d550f&tochange=5dcdd3c728fac543a832c9081d7221ee912ba762 |
Tried FF45, that does indeed fix this problem, thanks for checking that! Then there is still the increase in MS Edge:
Do you think that's also a browser issue? |
For MS Edge I use 25.10586.0.0 |
It's hard to tell. PDF.js is created for generic HTML5 platform, but we still have few places (e.g. Font or PDF loading) when logic is different for different browsers. However your issue looks more JS engine or CANVAS performance bound. Implementations of those differ across browsers. |
More info fixed by:
https://bugzilla.mozilla.org/show_bug.cgi?id=1225821 which indicates that some code was not efficiently compiled by JavaScript JIT. Maybe Edge has are the same issue, and it will not be fixed unless reported to the IE team. |
Thanks for help. |
There seems to be a problem with rendering speed in Firefox of specific large PDFs.
For example this file:
testfile.pdf
The first pages of this file render in roughly 300ms.
After rendering a couple pages it increases, eventually resulting in delays of 3000-4000ms .
The pages are the exactly the same, so delay may not increase.
This happens independently of the order in which you render the pages.
This increasing delay happens in Firefox.
Chrome doesn't show it.
In MS Edge it also increases, there the delay increase is smaller, but happens sooner.
So the investigation should focus on Firefox.
I have made a test to show this:
https://jsfiddle.net/7xm2Ltfh/7/
Try it in this way:
(1) Select the provided PDF
(2) Press Test 1.
(3) Delays of rendering full page will be printed.
Test 1 simply renders the pages one after each other.
Here you see the delay increasing and the latest delays will be >3000ms.
Test 2 reloads the PDF after each rendering.
That doesn't show the increase in rendering speed, but does have reload delay.
Hopefully one of you has on idea what causes this issue.
The text was updated successfully, but these errors were encountered: