LDCN


高度优化版Firefox:Swiftweasel

2008-08-09 20:55 | 分类 网络相关 | By TualatriX

Ubuntu下用Firefox 3越来越慢了,不仅地址栏反应慢,切换标签时更慢,网络不行时,干脆给我长达十几秒的假死。

我用了12个插件,但也不至于卡到这种程度。在百般无奈,又离不开Firefox之际,终于发现了这款高度优化版的Firefox:Swiftweasel。

—-

与之前我们介绍过的Swiftfox(请看:你用swiftfox了吗?)不同,Swiftweasel是一款开放源代码的、针对许多硬件平台进行优化编译的Mozilla Firefox。

Swiftweasel使用了-O3的编译参数,只考虑速度而不顾及大小,所以Swiftweasel比Firefox的可执行文件要大。另外,针对Intel和AMD的SSE等系列指令集进行特别优化。

下面是目前Swiftweasel3(即Firefox 3)具备的硬件编译版本,一定能找到你所在的平台吧(注:Core Duo为prescott,Core 2 Duo为:nocona):

athlon64 athlontbird athlonxp k6 k8 nocona  pentium2 pentium3 pentium3m pentium4 pentiumm prescott

那么,如何使用Swiftweasel呢?

你可以访问这里:Swiftweasel download下载各个平台的二进制包。

如果你是Ubuntu用户,根据自己的平台,加一行其中的源,你就可以安装了:

Dapper
deb http://download.tuxfamily.org/swiftweasel dapper multiverse

Edgy
deb http://download.tuxfamily.org/swiftweasel edgy multiverse

Feisty
deb http://download.tuxfamily.org/swiftweasel feisty multiverse

Gutsy
deb http://download.tuxfamily.org/swiftweasel gutsy multiverse

Hardy
deb http://download.tuxfamily.org/swiftweasel hardy multiverse

因为我是Core 2 Duo平台,所以我安装了swiftweasel3-nocona。

安装完后,我将~/.mozilla下之前的扩展、缓存和设置都导过来(复制至新的~/.sw3),理论上Swiftweasel 3已经和Mozilla Firefox 3一样了。

于是开始上网体验一番,嘿嘿!这个高度优化版的Swiftweasel 3不是吹的,不仅地址栏反应快了,标签同样如此。

之前因为地址栏反应很慢,所以将其减少为显示5个条目,现在显示成10个速度也没有受影响。开了十多个标签上网,速度也十分流畅。

然而,假死还是出现过一次,可幸的是只有几秒,而不是之前的十几秒,也没之前那么频繁。

下面是Swiftweasel 3默认的界面,就是变了标题,换了图标样式而已。

假如你也像我一样感觉Firefox 3卡的、慢的不可忍受的话,一定要试试这个Swiftweasel!

转载请注明:转自LDCN - 高度优化版Firefox:Swiftweasel

有 29 条评论 在 '高度优化版Firefox:Swiftweasel'

RSS 订阅此页的评论 或者引用 '高度优化版Firefox:Swiftweasel'.

  1. 喜欢抄袭 说:

    顶!!!!马上COPY!!!

    回复

    2008年08月09日 星期六 8:59 下午

  2. 好想跳楼死 说:

    早就投奔到opera的怀抱了…

    回复

    2008年08月09日 星期六 9:18 下午

  3. bmbtgys 说:

    怎么把语言换成中文阿?装那个zh-CN。xpi不起作用阿。。

    回复

    2008年08月09日 星期六 9:23 下午

  4. 独立的圆 说:

    自己编译firefox也可以

    回复

    2008年08月09日 星期六 9:32 下午

  5. TualatriX 说:

    @bmbtgys
    进入about:config
    查找general.useragent.locale,把值设置为zh-CN就可以了

    回复

    2008年08月09日 星期六 10:06 下午

  6. palxex 说:

    是这样吗?
    我怎么记得prescott是northwood之后的末代pentium4的codename,从pentiumM开始已经改换架构了?
    那个32/64bit的区别下载是为了不同linux版本(x86/x86-64)作的区别,以引用到不同的基础库。这跟架构上的选择是两码事。

    回复

    2008年08月09日 星期六 10:35 下午

  7. zhuqin 说:

    只在ubuntu下吧,毕竟只是i386的包。这个所谓swiftweasel的优化,不见得有多快,首先gcc版本就很低,其次,-o3对于绝大多数应用都是没用的,甚至还会导致错误,还有,它并不是利用系统本身的xulrunner,导致体积成倍增长,同时也没有加systemcairo选项,字体在lcd下非常难看。

    回复

    2008年08月09日 星期六 10:40 下午

  8. TualatriX 说:

    @palxex
    Prescott确实是未代Pentium 4的代称。
    不过这里的Prescott和Nocona确实是GCC于在Intel CPU下编译时的选项,下面是引用自man gcc的信息:
    prescott
    Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support.

    nocona
    Improved version of Intel Pentium4 CPU with 64-bit extensions, MMX, SSE, SSE2 and SSE3 instruction set support.

    如果你使用的GCC版本是4.3以上的话,可以直接用core2这个cpu选项了。

    @zhuqin
    我的字体跟系统原装的Mozilla Firefox一样的说。呵呵。
    你说的大概是Pango库有关的东西吧?新的Swiftweasel分别提供了pango编译版和使用系统自带的pango版。
    即有swiftweasel3-prescott和swiftweasel3-prescott-pango两个版本,一般用前都就能得到很好的效果了。
    至于没用系统自带的Xulrunner,这个是Firefox的核心部分,当然是要自己编译的了。

    详细的编译选项可以看:about:buildconfig

    回复

    2008年08月09日 星期六 10:57 下午

  9. ancintosh 说:

    感觉变化不大,我 Core 1 的机子

    回复

    2008年08月09日 星期六 11:24 下午

  10. palxex 说:

    @TualatriX
    Thanks,学到些新东西。
    不过从nocona-64bit这种命名,我不认为swiftweasel是在按照gcc选项命名各build。
    官方wiki的”Which build”页面http://swiftweasel.wiki.sourceforge.net/Which+Build%3F证实了我的这个想法:
    Prescott
    This build is recommended for the Core Duo (32bit) and Celeron D (64bit) processors
    Nocona
    This build is recommended for the Intel 64bit chips including the Core 2 Duo.
    从http://en.wikipedia.org/wiki/X86-64可见,Core2全系列支持64位扩展。但是支持64位扩展与否,即可用gcc选项nocona与否,跟运行在x86-64 CPU的传统模式或兼容模式也即swiftweasel版本命名里的32/64bit是无关的。因此,只要用的是core2的CPU,就应该用nocona名下,而32/64bit则看自己的发行版是i386还是x86-64。
    这是我的分析,欢迎指正。

    回复

    2008年08月09日 星期六 11:27 下午

  11. TualatriX 说:

    @palxex
    不客气!很认同你的深入分析!
    确实,只要CPU是Core2的,就可以用当前平台的GCC来以-march=nocona参数编译东西,毕竟这是从CPU来优化的,而不是从32/64的角度来优化的吧。
    而且从GCC 4.3开始,不用考虑Core 2该用Prescott还是Nocona了,一率用core2,也可以说明跟32/64是无关的。

    我去改正一下文章。
    现在开始用swiftweasel3-nocona了,呵呵。

    回复

    2008年08月09日 星期六 11:54 下午


  12. [...] 今天用了会Swiftweasel,感觉还行,但是总跟系统有点格格不入。图标不一样倒无所谓,即使我把它设置成了默认的浏览器,但是一些应用程序会在打开链接时调用系统的Firefox。 [...]

    2008年08月10日 星期天 12:49 上午

  13. cobranail 说:

    我的感觉是mozilla官方编译的firefox是最快的,firefox的代码里不见得用了多少mmx/sse指令,gcc的各种平台相关的优化对firefox作用不大。

    回复

    2008年08月10日 星期天 12:51 上午

  14. allbluedream 说:

    越来越慢是因为在“首选项>安全”里面开了攻击站点和伪造的警告吧

    只要不关这两个选项,即使是swiftweasel用两三个星期也会变成爬行的

    回复

    2008年08月10日 星期天 2:11 上午

  15. xiws 说:

    我插件用了二十几个。开始不觉得卡。。
    后来开到10+标签就会卡得受不了。。
    我想我是扣肉2阿。。不至于吧。。
    结果后来才发现是flash版本的问题。。我用的flash10b
    原来如此。。

    PS:我这里用的都是多配置。。开启FF后直接选profile。。
    我改了。。profile.ini把指向了home里。。这样我的FF就可以在两个系统里共享profile了。。

    回复

    2008年08月10日 星期天 9:28 上午

  16. ayanamist 说:

    Mozine英文论坛的第三方编译版块里有很多第三方编译版的,不光是Swift版

    回复

    2008年08月10日 星期天 10:33 上午

  17. druggo 说:

    athlon64和k8是一样的吧,干吗弄了2个?

    回复

    2008年08月10日 星期天 1:57 下午

  18. 有人 说:

    用了另外两个浏览器
    Galeon
    Epiphany
    就是稍微不小心就会崩溃。。。

    回复

    2008年08月10日 星期天 5:30 下午

  19. pig345 说:

    FF(2、3)历来是flash多了就不行了,去www.mydrivers.com开不到5个网页就卡死。(我可是T7500/4G/GF8600M)

    回复

    2008年08月11日 星期一 12:29 下午

  20. pig345 说:

    这个Sw有改善么?

    回复

    2008年08月11日 星期一 12:30 下午


  21. [...] 感谢来自Linux桌面中文网:高度优化版Firefox:Swiftweasel的稿件。 相关文章为firefox 3.0添加淘宝网搜索引擎解决Linux下Firefox无法启动的问题解决Firefox内存占用的问题如何让Firefox更安全让FireFox浏览网页速度大大提高Firefox 3 5个你不知道的新特征浏览无局限 Firefox 3的智能地址栏Mozilla携手 Yahoo!奇摩推FirefoxFirefox 3的Awesome BarFirefox 3.0 Bookmarks with Quicksilver 1.Firefox 2.0 download 2.火狐浏览器下载 del.icio.us Digg blogmarks Google StumbleUpon Technorati [...]

    2008年08月11日 星期一 1:13 下午

  22. Lwy 说:

    不知楼主用的是32位还是64位系统呢..
    酷睿2是64位的处理器。。不用白不用哦
    我E2140也用上了64位系统

    回复

    2008年08月12日 星期二 6:11 下午

  23. cccccc 说:

    |ubuntu专用文章|

    回复

    2008年08月12日 星期二 7:26 下午

  24. latteye 说:

    @druggo
    速龙64 是一个系列的 CPU
    K8 是一个架构

    K8 包含 速龙64

    闪龙64 也属于 K8

    ps 我的中文还是没搞起来

    回复

    2008年08月14日 星期四 10:36 下午

  25. 000 说:

    开 news.sina.com.cn还是 一样的卡 !!!!

    回复

    2008年08月16日 星期六 8:06 下午

  26. mike 说:

    gentoo用户是不是就可以无视了?

    回复

    2008年08月20日 星期三 6:10 上午

  27. eric 说:

    gentoo用户你爱干嘛干嘛,呵呵

    回复

    2008年08月27日 星期三 2:26 上午

  28. Pino 说:

    @cccccc:
    不会自己去官网上去下啊?
    有病

    回复

    2008年09月05日 星期五 3:02 上午

  29. du51 说:

    New Targets and Target Specific Improvements
    IA-32/x86-64
    Tuning for Intel Core 2 processors is available via -mtune=core2 and -march=core2.
    Tuning for AMD Geode processors is available via -mtune=geode and -march=geode.
    Code generation of block move (memcpy) and block set (memset) was rewritten. GCC can now pick the best algorithm (loop, unrolled loop, instruction with rep prefix or a library call) based on the size of the block being copied and the CPU being optimized for. A new option -minline-stringops-dynamically has been added. With this option string operations of unknown size are expanded such that small blocks are copied by in-line code, while for large blocks a library call is used. This results in faster code than -minline-all-stringops when the library implementation is capable of using cache hierarchy hints. The heuristic choosing the particular algorithm can be overwritten via -mstringop-strategy. Newly also memset of values different from 0 is inlined.
    GCC no longer places the cld instruction before string operations. Both i386 and x86-64 ABI documents mandate the direction flag to be clear at the entry of a function. It is now invalid to set the flag in asm statement without reseting it afterward.
    Support for SSSE3 built-in functions and code generation are available via -mssse3.
    Support for SSE4.1 built-in functions and code generation are available via -msse4.1.
    Support for SSE4.2 built-in functions and code generation are available via -msse4.2.
    Both SSE4.1 and SSE4.2 support can be enabled via -msse4.
    A new set of options -mpc32, -mpc64 and -mpc80 have been added to allow explicit control of x87 floating point precision.
    Support for __float128 (TFmode) IEEE quad type and corresponding TCmode IEEE complex quad type is available via the soft-fp library on x86_64 targets. This includes basic arithmetic operations (addition, subtraction, negation, multiplication and division) on __float128 real and TCmode complex values, the full set of IEEE comparisons between __float128 values, conversions to and from float, double and long double floating point types, as well as conversions to and from signed or unsigned integer, signed or unsigned long integer and signed or unsigned quad (TImode) integer types. Additionally, all operations generate the full set of IEEE exceptions and support the full set of IEEE rounding modes.
    GCC can now utilize the ACML library for vectorizing calls to a set of C99 functions on x86_64 if -mveclibabi=acml is specified and you link to an ACML ABI compatible library.

    回复

    2009年03月29日 星期天 1:25 下午

留下评论