piroor/xulmigemo

Firefox hangs in long pages

pintassilgo opened this issue · 2 comments

Maybe related to hardware limitations, but the point is the high resource usage.

Example (Fx 46.0.1, Win 10, i5-2400, 8GB):
https://addons.mozilla.org/pt-BR/firefox/files/browse/440201/file/files/foreground.js
Typing "twit" in findbar, Firefox froze for more than 2 minutes, so I decided to close the browser process. Tried again with another profile and it happened again.

With Normal Find the response is immediate, there is no difficulty in processing.

EDIT: now froze in a page with less than 9000 chars.

Thanks! The commit 04936c0 fixes the issue for me.

Thanks! Playing with the Find in this page, now sometimes it hangs for ~4 seconds, but may be expected due to the algorithm, considering that there's too much text on the page. No more permament freeze.