News for hackers. Stuff that matters.
Re:Mozilla: Are We Slim Yet? by Tichy on Wednesday April 04, 2012 @04:59AM (#3796743)
Is it the same old fallacy that consumed memory is somehow bad? What if they use it for efficient caching?
Re:Mozilla: Are We Slim Yet? by nnethercote on Wednesday April 04, 2012 @09:59AM (#3797580)
Trade-offs exist! How astonishing.

From https://wiki.mozilla.org/Performance/MemShrink:

"MemShrink is a project that aims to reduce Firefox's memory consumption. There are three potential benefits.

1. Speed. Firefox will be faster due to less cache pressure, less paging, and fewer/smaller GC and CC pauses. Changes that reduce memory consumption but make Firefox slower are not desirable.

2. Stability. Firefox will suffer fewer aborts/crashes due to virtual or physical memory exhaustion. The former is mostly a problem on 32-bit Windows builds with a 2GB or 4GB virtual memory limit, the latter is mostly a problem on mobile devices that lack swap space.

3. Reputation. Fewer people will complain that Firefox is a memory hog and that Mozilla ignores memory usage."

Re:Mozilla: Are We Slim Yet? by Tichy on Wednesday April 04, 2012 @10:07AM (#3797615)
I am not a specialist on that stuff, but I note the "will". If they have launched and noticed actual improvements, I'll be interested.
Re:Mozilla: Are We Slim Yet? by ssheth on Wednesday April 04, 2012 @10:16AM (#3797665)
nnethercote on the other hand is the "specialist" as he is in charge of the MemShrink project itself... I would trust him on this stuff.
Re:Mozilla: Are We Slim Yet? by Tichy on Wednesday April 04, 2012 @11:32AM (#3798016)
OK, but the developers of Mozilla are specialists, too. Why not trust them? Or is nnethercote part of the Mozilla dev team? MemShrink will hopefully just be merged into the core?
Re:Mozilla: Are We Slim Yet? by nnethercote on Wednesday April 04, 2012 @07:06PM (#3800365)
I'm a Mozilla employee and started MemShrink. I also write about it regularly: http://blog.mozilla.com/nnethercote/category/memshrink/.

MemShrink has been running since June 2011 and there have been many improvements in Firefox's memory consumption since then; these have shown up in Firefox 7, 8, 9, 10 and 11.

Re:Mozilla: Are We Slim Yet? by int3 on Wednesday April 04, 2012 @12:42PM (#3798379)
He's part of the Mozilla dev team. Memshrink isn't a branch that's waiting to get merged, but an ongoing program to reduce overall memory usage.
Re:Mozilla: Are We Slim Yet? by sp332 on Wednesday April 04, 2012 @06:43AM (#3796952)
I have already found one case in Firefox where this is true. FF will load the image data in background tabs, but it won't decode it (e.g. render a JPG) until you switch to that tab. I may be nitpicking but the extra half-second or so bothers me like texture pop-in in a game. So I go to about:config and set image.mem.decodeondraw and image.mem.discardable to false.
Re:Mozilla: Are We Slim Yet? by hackermom on Wednesday April 04, 2012 @05:09AM (#3796771)
By now I think it's well-known to every Firefox user that in the case of Firefox, the memory used is mostly leakage.
Re:Mozilla: Are We Slim Yet? by rpearl on Wednesday April 04, 2012 @09:13AM (#3797361)
Yes, absolutely. These measurements in the linked article are just a complete and utter lie.

Edit: The sentence above is sarcastic. Firefox has had better memory usage than its competitors for a while now, despite the belief that it is leaky.

Re:Mozilla: Are We Slim Yet? by nnethercote on Wednesday April 04, 2012 @09:57AM (#3797570)
Evidence, please.