On Fri, Mar 21, 2014 at 6:31 AM, Benjamin Smedberg <benja...@smedbergs.us> wrote: > > What is the per-compartment overhead?
It's hard to pin an exact number on it. It depends on exactly the mixture of GC things allocated by the compartment. But in my current session, the smallest two system compartments take up only 4,784 bytes. Another three are 9,568 bytes. They go up from there. Zones definitely helped. And most of the system compartments are in the same zone. But both CPG and zones have been around for a while, and start-up memory is still growing, because system compartments keep being added, and existing ones keep getting bigger. That's why my email focused mostly on lazy loading -- that seems like the easiest way to improve things. *And* it will help with start-up time. It's a no-brainer, but we're not doing enough of it. Marco identified a number of modules that could be lazily loaded, and filed several bugs that block ttps://bugzilla.mozilla.org/show_bug.cgi?id=986323. Hopefully others can do likewise; this isn't something that a single person will be able to do effectively, since it spans such a wide fraction of the product. Nick _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform