PDF.js much slower than Chrome with lots of LaTeX symbols
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
People
(Reporter: jonas, Unassigned)
Details
Attachments
(1 file)
172.29 KB,
application/pdf
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
Visit https://home.uni-leipzig.de/assmann/teaching/SS15/mathmode.pdf in Firefox nightly
Actual results:
Takes around 3s to load (not counting download time)
Bunch of profiles (didn't know what's the correct profiler mode):
https://share.firefox.dev/3mu0sVP
https://share.firefox.dev/3kw6S6l
https://share.firefox.dev/37RCQGD
https://share.firefox.dev/31P1CU2
Expected results:
Should take around 1s to load, as in Chrome
I originally reported it for PDF.js but it turns out it doesn't happen when PDF.js is used in Chrome https://github.com/mozilla/pdf.js/issues/12435. Note that I don't see much of a difference with or without WebRender with this version of nightly. The profiles above are with WebRender enabled.
Comment 2•4 years ago
|
||
Hi,
I was unable to reproduce on latest Nightly version 84.0a1 (2020-11-05) on macOS 10.15.
I will set a component to have a starting point of this. Please feel free to change it if it is not the right component.
Comment 3•4 years ago
|
||
I was also unable to reproduce on a Mac Pro and a Linux desktop, both render nearly instantly after download is complete. Have you tried with a clean profile?
Yes my tests are with a clean profile. I just re-checked with FF nightly from yesterday, still have the problem. Loading times:
Chrome: ~2s
FF w/o WebRender: ~5s
FF w/ WebRender: ~4.5s
Performed the test as follows:
Go to https://mozilla.github.io/pdf.js/web/viewer.html; upload the file from local file system; wait for loading indicator to disappear (the one next to the current page indicator on the top left)
I found the pdf in the pdf.js github: https://github.com/mozilla/pdf.js/issues/12435
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
I was not able to reproduce the bug on recent nightly, and not with mozregression on FF 81 with & without Web Render (all on Win)
:Jonas H., Are you able to reproduce the bug on your machine with recent FF ?
I can confirm that this is as fast as Chrome and faster than Safari with FF 95 on macOS.
Description
•