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
100% CPU due to text layer generating one div per letter #1045
Comments
This doc was my worst nightmare when writing the text selection algo :) We're planning to revisit it soon. |
The link is broken, but one other file
shares the same issue. |
@arturadib Have you done any revisits yet? If so, how was it? If not, how do you plan to revisit? |
@arturadib Thanks! |
Rendering for me is fast and text delection works. FF 21.0a2 (2013-03-13) Win7 hwa=on. Closed as fixed? |
Still is incredibly slow scrolling for me. |
Confirmed, scrolling is very slow on Firefox 20 with HWA enabled, Windows 7 64-bit and pdf.js development version. |
Another example: http://iacoma.cs.uiuc.edu/iacoma-papers/pldi14.pdf (from #4988). |
https://bugzilla.mozilla.org/show_bug.cgi?id=1054161 will help this quite a bit in Firefox. |
This change makes the transform-origin style be applied via viewer.css, rather than annotating every node individually. It makes the scrolling of the document from mozilla#1045 substantially smoother in Firefox.
#5209 helps here. |
This change makes scrolling noticeably smoother on files with many single-char text divs, such as the one in mozilla#1045. The trade-off is that the visual appearance of text selection in such documents is slightly worse, because more text divs overlap. This change also uses `scaleX(N)` instead of `scale(N, 1)`. This might be marginally more efficient in terms of JS string concatenation.
Here is the PDF
http://www.music.mcgill.ca/~cmckay/papers/musictech/ISMIR_2006_Genre.pdf
Browser is Chrome 16
OS is Ubuntu 10.10
The text was updated successfully, but these errors were encountered: