Iskanje po podpori

Izogibajte se prevarantski tehnični podpori. Nikoli vam ne bomo naročili, da pokličete telefonsko številko ali nam pošljete osebne podatke. Sumljivo dejavnost prijavite z gumbom »Prijavi zlorabo«.

Learn More

Gecko running slow

more options

I've been recently developing/playing around with JavaScript. Two days ago I discovered a leak (my first!) in my script. I ran it for about a minute before shutting it off and creating a heap. The heap was only ~23 MB, however, Gecko runs at a snails pace after opening it (by "snail's pace" I mean >20 second click lag) I thought my script might be the cause, but it still lags when opening the heap file in an empty tab. My system monitor is showing only moderate amounts of RAM used, however one core is always at 100% when processing a click. The "unresponsive script" dialog has popped up (script is chrome://browser/content/browser.xul:1) Totally new to advanced JS debugging, so I don't have the slightest idea what is going on. I'm using the built-in Gecko, and Firefox 42 (yes I know that is ancient)

I've been recently developing/playing around with JavaScript. Two days ago I discovered a leak (my first!) in my script. I ran it for about a minute before shutting it off and creating a heap. The heap was only ~23 MB, however, Gecko runs at a snails pace after opening it (by "snail's pace" I mean >20 second click lag) I thought my script might be the cause, but it still lags when opening the heap file in an empty tab. My system monitor is showing only moderate amounts of RAM used, however one core is always at 100% when processing a click. The "unresponsive script" dialog has popped up (script is chrome://browser/content/browser.xul:1) Totally new to advanced JS debugging, so I don't have the slightest idea what is going on. I'm using the built-in Gecko, and Firefox 42 (yes I know that is ancient)

Izbrana rešitev

23MB is huge. What is the file format of the heap file? Plain text would load fastest. If you are loading HTML (or JSON with the viewer, which is enabled by default), the rendering would take a long time. Definitely try to avoid huge HTML tables if you're in a hurry.

Preberite ta odgovor v kontekstu 👍 1

Vsi odgovori (2)

more options

Izbrana rešitev

23MB is huge. What is the file format of the heap file? Plain text would load fastest. If you are loading HTML (or JSON with the viewer, which is enabled by default), the rendering would take a long time. Definitely try to avoid huge HTML tables if you're in a hurry.

more options

Okay I took a new, much smaller heap, and saved it as a .txt file. It seems to be running much faster now. Thank you very much!