Firefox is very slow to render poster PDF
Categories
(Firefox :: PDF Viewer, defect, P3)
Tracking
()
Performance Impact | medium |
People
(Reporter: linuxhippy, Unassigned)
References
Details
(7 keywords, Whiteboard: [pdfjs-performance])
Attachments
(1 file)
3.90 MB,
application/x-7z-compressed
|
Details |
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 3•4 years ago
|
||
Around 20s for me in nightly 85 on Linux.
:Clemens, is it still an issue for you ?
Reporter | ||
Comment 4•4 years ago
|
||
I guess the question is not so much whether this specific case is an issue for me, but rather why Firefox's integrated PDF viewer is about 10x slower than its direct competitor Google Chrome.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 5•2 years ago
|
||
Here's a profile from nightly on Windows 11:
https://share.firefox.dev/3OKBJy7
We spend a lot of time in removing an Observer:
https://searchfox.org/mozilla-central/rev/f4d3fe187cf7dffa4c13b354bbde9bc47b5ccd3f/dom/canvas/ImageBitmap.cpp#86
:tnikkel, could you have a look please ?
Comment 7•2 years ago
|
||
It looks like nsContentUtils::RegisterShutdownObserver, and in general things that add an observer to the observer service, just store the observer in a regular array, so removing an observer is O(n) in number of observers. That is not suitable to use for objects like ImageBitmap where we might create a lot of them.
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Set release status flags based on info from the regressing bug 1414825
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Set release status flags based on info from the regressing bug 1414825
Updated•2 years ago
|
Comment 10•2 years ago
|
||
I'm gonna move that part of this that is a regression from bug 1414825 to bug 1839286, because after fixing that this testcase is still pretty slow, so there is mor going on here than just that.
Comment 11•2 years ago
|
||
The Performance Impact Calculator has determined this bug's performance impact to be medium. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.
Platforms: [x] Windows [x] macOS
Impact on site: Causes noticeable jank
Page load impact: Severe
Websites affected: Rare
[x] Affects animation smoothness
[x] Able to reproduce locally
Updated•2 years ago
|
Description
•