Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

if javascript interpreter does "JIT compilation", does it cache results of it for use on the same script next time I load the website?

to make it more specific, I mostly care about SpiderMonkey interpreter in Firefox.

So suppose I want to speed up the loading of a particular website in my browser or else speed up loading of all websites that have some popular script, e.g. JQuery. Presumably the scripts involved don't change between the page reloads. Will SeaMonkey understand that much and avoid full recompilation?

If SpiderMonkey wouldn't, will any other interpreter? Or is this basically a potential new feature which nobody cares about since computers are fast as is?

like image 619
EndangeringSpecies Avatar asked May 10 '11 23:05

EndangeringSpecies


1 Answers

This is not an optimization Gecko does yet, but it's one we're looking into doing for sure. There are some complications to doing it, unfortunately.

like image 82
Boris Zbarsky Avatar answered Oct 24 '22 16:10

Boris Zbarsky