Slowness working with very large javascript files
When I open a large javascript file (~20000 lines) firefox 3 slows down to a crawl. Sometimes the "Unresponsive script" dialog will popup and ask me to stop or continue the script. The reason I have a js file so long is because I'm automatically concatenating all the js files in my project into one. My machine is very new (quad core with 8 gigs of ram). I understand that this is probably a bit of an edge case for rainbow, but I figured I'd let you know.
2
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Oh, I can imagine this situation when you are compacting all the JS files without line breaks into one huge line. Because Rainbow is parsing the script in chunks of L lines after every M milliseconds by routine which is scheduled by setInterval().
Firefox complains with popup when the routine runs very long time without returning back to firefox.
Workarounds:
1. set your JS compressor to insert newline after every chunk of reasonable size (YUI compressor has option for it)
2. You may try to fiddle some Rainbow related settings in about:config.
2.1. type about:config into Firefox URL bar
2.2. filter by "rainbow"
2.3. experiment with extensions.rainbow.daemonInterval (M) and extensions.rainbow.linesPerCall (L)
Firebug 1.3 will have reimplemented this script view and hopefully will be much much faster, but this is far future.
The company and 1 other person say
this solves the problem
-
Inappropriate?This is solved in FireRainbow 1.0
Daemon is chunking source on tokens basis instead of per lines.
The company says
this solves the problem
Loading Profile...


