Firefox gains weight, challenging its developers

Now too big to be built on 32-bit Windows, the popular browser forces Mozilla developers to look for alternatives.

By Katherine Noyes, PC World |  Internet, Firefox, JavaScript

Firefox's SpiderMonkey JavaScript engine may be on a "memory diet," as I reported last month, but it looks like Mozilla's popular browser is getting a bit too big for its britches nonetheless.

Specifically, recent Firefox builds have been too large for developers to work with them on 32-bit Windows, causing problems as a result of space constraints.

"The problem seems to be that the linker is running out of virtual address space during the optimization phase," explained Mozilla developer Kyle Huey in a Google groups email.

A 3GB virtual address space limit in 32-bit Windows is apparently behind the issue, causing developers to scramble for ways to work around it. Until a long-term solution is found, the Firefox team has "turned off or ripped out a few new pieces of code (Graphite, SPDY, libreg) which has brought us back down under the limit for the moment," Huey noted.

Three Options

This actually isn't the first time Firefox has encountered this problem. Much the same thing happened back in early 2010, when a 2GB limit was resolved using the /3GB switch for an extra gigabyte of breathing room.

This time, however, "unfortunately the options aren't as easy as flipping a switch," Huey wrote.

Instead, the developers now face three options:

1. Remove code from the software or split code into separate shared libraries;

2. Switch to Microsoft Visual C++ 2010; or

3. Create Firefox's 32-bit builds on machines running a 64-bit operating system, thus giving the linker access to 4GB of address space.

It's not clear how much the second option would help, Huey noted, plus it won't be feasible for a few weeks. Huey recommended "a combination of (1) in the short term and (3) in the slightly less short term," he said.

SpiderMonkey, incidentally, is not part of the core "libxul" library and so is not part of the problem, Huey pointed out.

A Common Problem


Originally published on PC World |  Click here to read the original story.
Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Ask a Question