On 03/17/2016 08:05 AM, Thinker Li wrote:
On Wednesday, March 16, 2016 at 10:22:40 PM UTC+8, Nicholas Nethercote wrote:
Even if we can fix that, it's just a lot of JS code. We can lazily import
JSMs; I wonder if we are failing to do that as much as we could, i.e. are
all these modules really needed at start-up? It would be great if we
could instrument module-loading code in some way that answers this
question.
B2G also did dropping JS source, for Tarako branch, since source is useless for
loaded module save for stringify functions. (Gecko compress in-memory source.)
But, I am not sure if it was landed on m-c then.
Note, this worked on B2G, but this would not work for Gecko. For example all
tabs addons have to use toSource to patch the JS functions.
Source compressions should already be enabled. I think we do not do it for
small sources, and for Huge sources, as the compression would either be
useless, or it would take a noticeable amount of time.
--
Nicolas B. Pierron
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform