mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.34k stars 9.97k forks source link

Huge required time to highlight search results in IE #6027

Closed elarchenko closed 5 years ago

elarchenko commented 9 years ago

Environment: MS Windows 7 x64, MS IE 11

Steps to reproduce:

  1. Open http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf with http://mozilla.github.io/pdf.js/web/viewer.html.
  2. Try to search "sha-1" entry.

Actual results: First entry will be shown and highlighted after aprox. 50 seconds.

Snuffleupagus commented 5 years ago

Please note that IE11 is really old, and haven't received meaningful updates/improvements in a couple of years. Besides, it's general JavaScript performance was never great to begin with, a problem that's further compounded by its lack of support for many modern JavaScript features which thus requires polyfills (which are slower than native code).

One possible explanation, besides general slowness of the browser itself, is that the amount of asynchronous code in PDF.js is difficult for IE11 to handle. However, the PDF.js code has/will only become more async over time (also the case with many other JavaScript applications), so there's nothing that can be done here.

This issue is essentially asking for PDF.js developers/contributors to somehow improve the general JavaScript performance of the IE11 browser itself, which is obviously not possible unfortunately; hence closing this as INVALID seems like the appropriate resolution here.