On 11/08/2017 07:50 PM, dmosed...@mozilla.com wrote:
Does this cache bytecode for about: pages as well? As an example, caching bytecode for various JS scripts from resource: and chrome: for about:home might get interesting startup improvements...
I would not expect the JSBC to be used in such cases because JavaScript files are loaded from resource:// and chrome:// protocols which are not implementing the nsICacheInfoChannel API as the necko cache does.
Thus, if we want to do so, we should probably pre-compiled the content of the JSBC and insert it in the OmniJar, and implement the nsICacheInfoChannel to let the ScriptLoader know about these pre-compiled resources.
-- Nicolas B. Pierron _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform