On Tue, Jun 13, 2017 at 12:10:58PM -0400, Boris Zbarsky wrote:
On 6/13/17 11:00 AM, Dirkjan Ochtman wrote:
Has anyone thought about doing similar things for chrome JS?
We've been doing fastload for chrome JS (and indeed for entire chrome
XUL documents, including their scripts) for 15+ years now, no?
Yes and no. We do something similar to this for the module
loader and subscript loader, but only for the entire compiled
source, not for individual functions, and without any kind of
lazy compilation.
For <script> tags in XUL documents, we only use a bytecode cache
for inline scripts. Other scripts are compiled off-thread from
source, using the ordinary script loader logic. Or, at least,
that's my understanding after investigating whether we could use
the script precompiler for them, to improve first paint time.
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform