You're settling for good when there's awesome.  Upgrade to Firefox 3.5!

Firefox 3: how to rock on a memory budget

March 12, 2008 - 3:46 pm

For those who have already noticed Firefox 3’s memory usage improvements and wonder how they did it while adding a wealth of new features, Mozilla’s Stuart Parmenter has posted an excellent write up about what has been done so far to improve Firefox 3 memory management.

In brief:

- Defragmentation, which has reduced memory usage after startup in more than one third.

- Image cache, fonts cache, back/forward cache, and more. They have all been tuned up to free used resources after certain time of inactivity.

- Uncompressed images are discarded from memory after a while if not active.

- More efficient animated GIFs storage in memory.

- About 400 memory leaks have been hunted and taken down thanks in part to better tools to identify them.

- A cycle collector takes care of objects referencing each other preventing either of them being cleared from memory.

Stuart ran a set of tests on Firefox 3, along with Firefox 2 and Internet Explorer 7 to see memory usage when opening a total of 319 pages simulating new windows. Pages were loaded from a proxy to prevent network conditions affect the test.

The graph below (courtesy of Stuart) shows how Firefox 3 in general uses less memory than in the past (Firefox 2). Better yet, it effectively returns the memory it doesn’t need anymore after a few minutes. My previous, not as comprehensive and less automated test revealed a similar behavior.

Firefox 3 memory comparison

By popular demand, Mike Shroepfer put Opera 9.5beta under the same test, and found it peaks at 240MB (compared to FF3’s 220MB) and releases down to 220 MB (pretty much higher than FF3’s 85 MB).

The bottom line: Firefox 3 rocks in memory management.

Now, get the popcorn and let’s all wait for the next round of numbers from a competitor.

Yes, it’s definitely Browser Wars II. Enjoy.

And one more thing, as noted by Chris Blizzard: “So what does this mean in a mobile context? It’s pretty simple, really. What it shows to anyone who looks is that we’re able to hit the kinds of memory and performance requirements that mobile platforms demand.”


Comments

Tiago Sá

March 12, 2008 3:46 pm

I’m definitely enjoying this. Firefox 3 is a bit heavier than Firefox 2 when we start browsing, but while Firefox 2 would increase its memory usage over time, Fx3 won’t and will instead stay at reasonable levels. Also, it handles 60+ extensions a lot better than Fx2 did, which is simply awesome for guys like me that use 60+ extensions :P

Reply

steveballmer

March 12, 2008 3:46 pm

IE 5 even makes this crap look like ….. crap!

Reply

Matt

March 12, 2008 3:46 pm

I’m thoroughly enjoying this browser war. You won’t catch me using any browser other than Firefox, but it’s great to see the competition struggle.

Reply

Rasmus

March 13, 2008 3:46 pm

I would like to see the specs for Safari. The other day I browsed their site, and they claimed that they were pretty much better at everything. KTHML or WebKit should be pretty efficient, as far as I have heard.

K-Meleon is actually nice. You may catch me using it. I also enjoy Lynx or W3M at times.
-Rasmus

Reply

Mozilla is Dead Serious in Making Firefox 3 “The Best” « Lingua Franca

March 13, 2008 3:46 pm

[...] Memory Management:  Several new technologies work together to reduce the amount of memory used by Firefox 3 Beta 4 over a web browsing session.  Memory cycles are broken and collected by an automated cycle collector, a new memory allocator reduces fragmentation, hundreds of leaks have been fixed, and caching strategies have been tuned.  For more technical information regarding memory leakage, please click here. [...]

Fair and Square

March 13, 2008 3:46 pm

Where are the results for:

Internet Explorer 8 (IE8)
Opera 9.26
Opera 9.50 Beta
Safari 3

Although the new improvement are nice, it would be better to see a super lightweight Firefox Lite Editon. This would be a step toward Firefox Mobile Edition.

Internet Explorer Mobile – Yes
Opera Mobile – Yes
Safari Mobile – Yes
Firefox Mobile – No

Reply

When minds collide

March 14, 2008 3:46 pm

Firefox 3 has major mamory management overhaul

Although we all love to use Firefox, we have to admit it’s not the fastest app to launch. I always thought that its bottleneck was its modular XUL plug-in technology. After all, extracting plug-ins from compressed containers, then interpreting an…

Joshi

March 16, 2008 3:46 pm

For me, with no add-ons, the browser starts up in less than 1 second (512MB Ram intel p4 2,8 ghz 80GB hd). Very cool! Compared to ff2, which is 4 s, it is a 4 time run!

Reply

level

March 20, 2008 3:46 pm

> Opera 9.5beta … releases down to 220 MB
The comment says that
> doesn’t free up any memory at the end (so ends at 240MB).

And here is the updated graph with Opera 9.5 and Safari.
memory-graph2 on Flickr – Photo Sharing!
http://www.flickr.com/photos/stuartp/2328802961/

Reply

Leave Comment