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

北城以北 提交于 2019-12-04 09:14:27

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/5957720/if-javascript-interpreter-does-jit-compilation-does-it-cache-results-of-it-fo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!