Re: Effects of JSM Compartments on Performance and Development Practices

2013-02-07 Thread Nicholas Nethercote
On Tue, Jan 22, 2013 at 6:13 PM, Nicholas Nethercote wrote: > > https://bugzilla.mozilla.org/show_bug.cgi?id=759585 proposes > introducing "zones". Compartments in the same zone could share > arenas, which would fix (1) (for compartments in the same zone). This > would also fix (3), because comp

Re: Effects of JSM Compartments on Performance and Development Practices

2013-01-22 Thread Nicholas Nethercote
On Tue, Jan 22, 2013 at 2:15 PM, Boris Zbarsky wrote: > On 1/20/13 2:37 PM, Gregory Szorc wrote: >> >> * Have all or most of chrome-privileged JS share the same compartment >> (like on B2G). It's my understanding the CPG decision was largely driven >> by content/security requirements and chrome ju

Re: Effects of JSM Compartments on Performance and Development Practices

2013-01-22 Thread Boris Zbarsky
On 1/20/13 2:37 PM, Gregory Szorc wrote: * Have all or most of chrome-privileged JS share the same compartment (like on B2G). It's my understanding the CPG decision was largely driven by content/security requirements and chrome just got caught up in it. What's not clear to me is whether this is

Re: Effects of JSM Compartments on Performance and Development Practices

2013-01-22 Thread Boris Zbarsky
On 1/20/13 4:01 PM, Joshua Cranmer wrote: If it were possible to have strings cross-compartments that don't require flattening and excessive copying, that would make the lives of add-on authors in a CPG world much easier. Please make sure bugs are filed? -Boris ___

Re: Effects of JSM Compartments on Performance and Development Practices

2013-01-20 Thread David Rajchenbach-Teller
I have some shared concerns, given that I am one of the persons involved in the ongoing heavy refactoring on Session Restore, which for some users needs to deal with 50Mb+ strings sent across JSMs. At the moment, my main worry is not memory usage (yet) but string copying. Cheers, David signat

Re: Effects of JSM Compartments on Performance and Development Practices

2013-01-20 Thread Joshua Cranmer
On 1/20/2013 1:37 PM, Gregory Szorc wrote: I'm writing to the Platform list as a developer that maintains a significant amount of JavaScript for Firefox. Much of the JavaScript I maintain is for large backend features, such as Sync and Firefox Health Report. These features are thousands of line

Re: Effects of JSM Compartments on Performance and Development Practices

2013-01-20 Thread Justin Lebar
We've had bug 764220 open on the CPG memory regression for six months now. Although it's a MemShrink:P1, it hasn't gotten the attention it deserves. FWIW, I think part of this stems from the fact that the MemShrink team is often ineffective at getting others to fix bugs that we think are a priori