Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

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)

Isisombululo esikhethiwe

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.

Funda le mpendulo ngokuhambisana nalesi sihloko 👍 1

All Replies (2)

more options

Isisombululo Esikhethiwe

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!