Faster Linux builds

After two failed attempts last year, and a few glitches yesterday, we finally managed to get our Linux (and, obviously, Linux64) builds to use GCC 4.5, with aggressive optimization (-O3) and profile guided optimization enabled. This means we are finally using a more modern toolchain, opening opportunities for things such as static analysis. This also means we are now producing a faster Firefox, now much closer to the Windows builds on the same hardware on various performance tests.

A nice side effect of some of the work I have done to make the switch possible is that these builds will also work on older Linux platforms such as RedHat/CentOS 5, or possibly older (as long as they come with libstdc++ from GCC 4.1).

The first Firefox release to benefit these new settings should be Firefox 6.

A few branches other than mozilla-central have also been switched, most notably Try, for which there is a known issue if you push something too old. Please make sure to read the corresponding information on wiki.m.o for a workaround. A Mercurial hook is going to be put in place to issue a warning if there are chances your build will fail (it will, however, not prevent the push).

Thanks to Chris Atlee, Rail Aliiev, Taras Glek, Justin Lebar and all those I forgot or am not aware of for their assistance and/or past involvement in the previous attempts.

2011-04-29 11:31:18+0900

p.m.o

You can leave a response, or trackback from your own site.

61 Responses to “Faster Linux builds”

  1. Firefox bientôt davantage optimisé pour Linux | Allomonsite.com Says:

    […] Mike Hommey, member au développement du navigateur Firefox au sein de l’équipe de Mozilla, annonce en effet avoir finalement réussi à compiler une build de l’application avec le compilateur […]

  2. Más velocidad para Firefox en equipos Linux | Geekets Says:

    […] de referencia: Glandium. – Publicidad […]

  3. En vrac’ divers et (a)variés ;) | Le Weblog de Frederic Bezies Says:

    […] Mozilla Firefox bientôt plus rapide sous linux ? Ce serait pas un mal… Mais le plus intéressant, c’est le moteur Javascript et dont la nouvelle génération s’appellera IonMonkey. Qui ne sera pas disponible avant Mozilla Firefox 6, à mon très humble avis d’utilisateur des logiciels de la Fondation Mozilla depuis… 11 ans environ […]

  4. ¿Por qué Firefox es más lento en Linux que en Windows? « Conocimiento Libre (o lo que está detrás del Software Libre) Says:

    […] palabra de Mike Hommey, desarrollador de Mozilla: Por fin nos las hemos arreglado para conseguir que nuestras versiones […]

  5. Firefox bientôt davantage optimisé pour Linux | Global-SSII Says:

    […] Hommey, participant au développement du navigateur Firefox au sein de l’équipe de Mozilla, annonce en effet avoir finalement réussi à compiler une build de l’application avec le compilateur […]

  6. SimplyMEPIS 11 adds LibreOffice and a faster Firefox 4 | atefekyvusy Says:

    […] distro also features FireFox 4.01, which is claimed to run much faster on Linux than it did previously. The Mozilla team announced in late April it had finally managed to […]

  7. Firefox 6 ist da! | HalloUbuntu Says:

    […] lässt sich auf das Wechseln des Compilers auf GCC 4.5 zurückführen. Der Firefox-Entwickler Mike Hommey schreibt dazu: After two failed attempts last year, and a few glitches yesterday, we finally managed to get […]

  8. Firefox 6 in finaler Version erschienen Says:

    […] und mit aktivierter “profile guided optimization”, wie die Entwickler bereits im April in einem Blog-Eintrag verrieten. Nebeneffekt: Firefox 6 sollte nun auch auf älteren Linux-Plattformen, wie […]

  9. Was ist neu an Firefox 6? | Linux und Ich Says:

    […] Compiler umzusteigen, doch erst mit Firefox 6 ist dies nun gelungen. Mozilla-Entwickler Mike Hommey schreibt in seinem Blog: We finally managed to get our Linux (and, obviously, Linux64) builds to use GCC 4.5, with […]

  10. 好消息!Firefox 6的Linux版将和Windows版一样快 | ubuntu 啦 Says:

    […] Hommey在博客上宣布,他的团队成功利用整合配置文件导引优化(Profile-Guided […]

  11. delivery Says:

    Hey very nice blog!! Man .. Excellent .. Amazing .. I will bookmark your site and take the feeds alsoI’m satisfied to find a lot of useful info right here within the post, we’d like develop extra strategies in this regard, thanks for sharing.

Leave a Reply