Swiftweasel: Firefox PGO 优化版

先前我们曾为大家介绍了针对特定处理器进行优化的 Firefox 版本──Swiftfox,我最近发现的 Swiftweasel 则将 Firefox 的优化更进了一步,它不只把 PGO(即“Profile Guided Optimization”)优化带到了 Linux 平台,而且还加入了其他一些额外的优化,如使用 -O3 选项编译、默认开启 HTTP pipelining 等。经过优化后的 Swiftweasel,速度更快。另外,Swiftweasel 还预装了 AdBlock Plus、XForms、User Agent Switcher、Quick Locale Switcher 等实用扩展。

Swiftweasel

如果你嫌 Firefox 的官方 Linux 版本慢,大可试试 Swiftweasel 这个优化版。

Swiftweasel

{ via LinuxHaxor }

Read More:

  • No related posts

40 Comments

  1. 1 冰怨 Commented @ 2009-05-03 10:10Reply to this comment

    哎,3.5beta4的pgo版本编译不通过,烦人

  2. 2 laogao Commented @ 2009-05-03 10:17Reply to this comment

    官方的ubuntu repository目前只支持到Intrepid。 像浏览器这样经常可能升级、补丁的软件,还是有个自动更新的repository方便些。自己编译毕竟还是比较费事。

  3. 3 冰怨 Commented @ 2009-05-03 10:22Reply to this comment

    @laogao,浏览器是我使用频率最高的软件,因此我追求最高性能,编译2小时也不是我愿意。

  4. 4 fcicq Commented @ 2009-05-03 10:23Reply to this comment

    由于某些原因, 好像目录不是官方目录. (或许偶记错了?) 应该以前用过 ~/.sw3 什么的, 绝对不碰 ~/.mozilla

  5. 5 fcicq Commented @ 2009-05-03 10:25Reply to this comment

    另外, PGO 不是万能的, 多数的编译者可能就省事, 只拿那些测试性能的网页去 profile, 和实际使用的情况区别还是相当大的. 这样的后果就是测着快跑着慢 (但慢也不会很多).

    大家还是用 3.5 / 3.6 系列吧.

  6. 6 eagle Commented @ 2009-05-03 10:50Reply to this comment

    这个东西字体好像没有次像素优化,字体不好看

  7. 7 YCF.name Commented @ 2009-05-03 11:37Reply to this comment

    问题是能快多少。

  8. 8 eric Commented @ 2009-05-03 12:19Reply to this comment

    @YCF.name: 你能指望快多少~

  9. 9 ggyy_sun Commented @ 2009-05-03 15:43Reply to this comment

    跟我Debian上的iceweasel确实快不少阿

  10. 10 qii Commented @ 2009-05-03 15:54Reply to this comment

    是不是就启动速度加快阿

  11. 11 larz Commented @ 2009-05-03 15:56Reply to this comment

    官版已使用PGO优化好一阵子了,编译最起码也有使用O2,很多时候O2不见得比O3慢

  12. 12 seenxu Commented @ 2009-05-03 16:03Reply to this comment

    @冰怨:

    确实编译不成功,在自动打开浏览器窗口那里停住了。简单跑了sunspider测试,ff3.0.10-pgo 和ff3.5b4之间差距大概有500的样子,实际使用也感觉不到什么差异,所以,还是老实的用ff3.0系列吧。

  13. 13 冰怨 Commented @ 2009-05-03 16:15Reply to this comment

    @seenxu,我的刚刚编译成功了,速度满快的,嘿嘿

  14. 14 seenxu Commented @ 2009-05-03 16:37Reply to this comment

    @冰怨:

    你也是停在那里吗?如何解决的?

  15. 15 Chung Commented @ 2009-05-03 16:43Reply to this comment

    一直在使用官方提供的编译版...现在的版本要优化也只是启动的速度.

  16. 16 123 Commented @ 2009-05-03 17:04Reply to this comment

    这玩意的古怪之处是提供的deb包安装到/usr/local下面,不合debian的specific

  17. 17 冰怨 Commented @ 2009-05-03 17:23Reply to this comment

    @seenxu,你说的“在自动打开浏览器窗口那里停住”我没有注意,但我是把mozconfig里的以下几项去掉了: export BUILDOFFICIAL=1 export MOZILLAOFFICIAL=1 export USESHORTLIBNAME=1 mkaddoptions BUILDOFFICIAL=1 mkaddoptions MOZILLAOFFICIAL=1 mkaddoptions USESHORTLIBNAME=1

    另外,LDFLAGS里不能有"-Wl,--as-needed"。 BTW,我的是gcc 4.4.0

  18. 18 冰怨 Commented @ 2009-05-03 17:27Reply to this comment

    @Chung,Linux下Firefox的启动速度已经很快,没有必要优化,至少在我的机器上是这样。 编译优化还是有效果的,否则怎么还有那么多人在构建pgo版本呢?

  19. 19 Chung Commented @ 2009-05-03 17:36Reply to this comment

    嗯.好像是我没说清楚.启动慢是指第一次启动.这个地方的优化还是很必要的

  20. 20 seenxu Commented @ 2009-05-03 21:13Reply to this comment

    @Chung:

    我这里第一次启动需要2秒左右(带10个addons),没有优化过,我觉得已经很快了,没有再优化的必要了。

  21. 21 seenxu Commented @ 2009-05-03 21:18Reply to this comment

    @冰怨:

    × 我这里一直都是没有用official-branding这个选项. × ldfalgs也没有用特别的设置 × 我用的是gcc 4.2.4,我觉得应该和gcc没关系,因为我没有加pgo是可以编译通过的

  22. 22 seenxu Commented @ 2009-05-03 21:25Reply to this comment

    @冰怨:

    pgo优化在日常使用中我觉得效果不大,就是跑sunspider分数有些提高,而且,我还发现mozilla的ff3.5b4 32bit offical build没加pgo,在我的64bit机器上竟然跑sunspider提高了2000多,我用和offical build一样的参数编译出来的64bit版本sunspider也就提高了500左右。

    大概状况如下(实际日常应用测试,没有特别感觉,以gmail为例): ff 3.0.10 pgo 64bit ~4700 ff 3.5b4 (same mozconfig with 32bit offical build) 64bit ~4400 ff 3.5b4 32bit offical build ~2200

    硬件配置: amd x2 3800+ 2gb, 2.6.27, x86_64

  23. 23 tmpcc Commented @ 2009-05-03 23:36Reply to this comment

    理论上,瓶颈在算法。mozilla的架构太大了。。。

  24. 24 igotcha Commented @ 2009-05-04 0:31Reply to this comment

    以前用Ubuntu的时候firefox就很卡,尤其是打开和关闭的时候.现在换成Gentoo了,自己编译果然快了很多~

  25. 25 Chung Commented @ 2009-05-04 0:51Reply to this comment

    @seenxu: 第一次启动只要2秒.太强大了.

    那还优化什么啊...

  26. 26 wow Commented @ 2009-05-04 1:55Reply to this comment

    2秒启动,SSD硬盘?

  27. 27 冰怨 Commented @ 2009-05-04 10:41Reply to this comment

    @seenxu,我的32-bit系统,sunspider: FF3.5b4官方编译版 2200左右, firefox-hg 2000左右, FF3.5b4-pgo 1800左右,虽然感觉不到明显的速度提升,但我想在某些情况下会好很多。 @Chung,我的机器上FF冷启动也只需要2s左右。 @wow,我的是Sata硬盘,相信seenxu的也是。 @tmpcc,编译器的优化远远比不上算法优化,但我目前没有本事去优化FF的算法,只能编译pgo版本。

  28. 28 seenxu Commented @ 2009-05-04 15:41Reply to this comment

    @igotcha:

    我也是用ubuntu,没觉得卡啊.

  29. 29 seenxu Commented @ 2009-05-04 15:43Reply to this comment

    @wow:

    普通的ide硬盘.

  30. 30 seenxu Commented @ 2009-05-04 15:44Reply to this comment

    @冰怨:

    问一下,你的硬件配置如何?

  31. 31 冰怨 Commented @ 2009-05-04 21:16Reply to this comment

    @seenxu,Athlon64 3000+,2GB RAM

  32. 32 liangsuilong Commented @ 2009-05-04 21:33Reply to this comment

    我的E2160@2.4GHz,2GB内存,跑firefox3.5beta4前几天的nightly build的sunspider,在fedora 10是1500ms左右,在windows xp是1000ms多一点...两个都是同一天的build来的。但是依然比chrome 2.0beta win版本远远抛离..不过一般应用是感觉不出来的。

  33. 33 冰怨 Commented @ 2009-05-04 22:07Reply to this comment

    @liangsuilong,原来sunspider成绩与CPU密切相关,你的分数比我的高了很多啊

  34. 34 seenxu Commented @ 2009-05-04 22:41Reply to this comment

    @冰怨:

    现在可以确定的是32bit的ff确实速度比64bit强一大块,至少跑分这一个方面...

  35. 35 nasofe Commented @ 2009-05-04 23:33Reply to this comment

    也不知道是不是 rp 问题,我跑 pgo 很少通过,所以现在只好用别人编译的。

  36. 36 nasofe Commented @ 2009-05-04 23:34Reply to this comment

    似乎跑 pgo 是可以不使用脚本启动,直接手动启动的。至于执行次数记录不溢出就可以。

  37. 37 冰怨 Commented @ 2009-05-05 9:20Reply to this comment

    @seenxu,在64位变得和目前的32位一样可用的时候我会考虑上64位,嘿嘿

  38. 38 seenxu Commented @ 2009-05-05 15:29Reply to this comment

    @冰怨:

    没关系,编译一个32bit的ff在64bit上用就行了。:D

  39. 39 冰怨 Commented @ 2009-05-05 16:39Reply to this comment

    @seenxu,所有你找不到的64bit原生软件都这么解决?

  40. 40 seenxu Commented @ 2009-05-05 22:00Reply to this comment

    @冰怨:

    基本上很少用到32bit软件,只是32bit的ff确实性能突出,才那么一说。