Skip to content
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

Slow rendering of PDF with time spent in genericComposeSMask #17838

Closed
mstange opened this issue Mar 25, 2024 · 4 comments · Fixed by #18029
Closed

Slow rendering of PDF with time spent in genericComposeSMask #17838

mstange opened this issue Mar 25, 2024 · 4 comments · Fixed by #18029

Comments

@mstange
Copy link

mstange commented Mar 25, 2024

Attach PDF file here: d2_cheat_sheet.pdf

Configuration:

  • Web browser and its version: Firefox Nightly 2024-03-25
  • Operating system and its version: macOS
  • PDF.js version: ?
  • Is a browser extension: browser-native

Steps to reproduce the problem:

  1. Load the PDF

What is the expected behavior? It should draw quickly.

What went wrong? It was slow.

Profile: https://share.firefox.dev/49axVfO


The profile shows that all the time is spent waiting for readback in getImageData for genericComposeSMask.
What does genericComposeSMask do? Which APIs would be needed in canvas to allow implementing it on the GPU?

@marco-c
Copy link
Contributor

marco-c commented Mar 25, 2024

This is probably the same as https://bugzilla.mozilla.org/show_bug.cgi?id=1874013.

@marco-c
Copy link
Contributor

marco-c commented Mar 25, 2024

See also #14982 (comment).

@Snuffleupagus
Copy link
Collaborator

Duplicate of e.g. issue #17779?

@marco-c
Copy link
Contributor

marco-c commented Mar 26, 2024

Yes!

It seems to be frequent enough that we should prioritize it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants