On Fri, Mar 21, 2014 at 2:00 PM, Nicholas Nethercote
<n.netherc...@gmail.com> 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.

I should clarify: that's the memory consumption that's identified as
belonging to the compartment, but that's not the whole picture. Some
compartment data gets reported at the level of the runtime, including
'script-sources' and 'script-data'. Our increase for these over the
past year is 1.5 MiB (see
https://bugzilla.mozilla.org/show_bug.cgi?id=986323#c1). That's purely
due to loading more code, and is unrelated to compartment overhead.
Lazy loading will help there.

Nick
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to