On 6/13/17 5:23 PM, Kris Maglione wrote:
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.

True.

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.

Hmm. I guess we still cache the compiled script in the nsXULPrototypeCache but no longer do XDR for out-of-line <script>s? That's certainly a change from the last time I looked at that code... We used to do XDR there.

Doing the per-function thing might make sense if (as I expect) most of our chrome code is cold...

-Boris
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to