客游
千年狐狸
千年狐狸
  • UID5736
  • 注册日期2005-05-06
  • 最后登录2012-10-09
  • 发帖数1363
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:4391回复:12

回应速度之说与内存释放

楼主#
更多 发布于:2006-06-30 11:54
工作了,没有太多时间上论坛,昨天晚上上了一次,看见很多怀疑速度的和抱怨内存的。
在速度方面可以作如下设置,然后在去试一下速度,可能会有比较好的结果:
about:config
network.http.pipelining     true
network.http.pipelining.maxrequests    value>30
nglayout.initialpaint.delay    0(新建  integer)
内存释放可以做下面的设置:
config.trim_on_minimize   true  (新建  布尔)
昨晚这些设置之后,再去对比,你就会喜欢上firefox
eagle5678
千年狐狸
千年狐狸
  • UID4956
  • 注册日期2005-04-10
  • 最后登录2023-04-02
  • 发帖数1247
  • 经验204枚
  • 威望0点
  • 贡献值120点
  • 好评度3点
1楼#
发布于:2006-06-30 11:54
感觉fasterfox这个东东影响速度,刚看完点球,上一下
CooB
千年狐狸
千年狐狸
  • UID2829
  • 注册日期2005-02-06
  • 最后登录2023-05-23
  • 发帖数2176
  • 经验140枚
  • 威望0点
  • 贡献值18点
  • 好评度3点
  • 社区居民
  • 忠实会员
2楼#
发布于:2006-06-30 11:54
这是我在使用fasterfox之后根据fasterfox的设置copy下来的,直接做成user.js来使用了,请各位狐狸批评一下,谢谢。

//fasterfox 1.0.3 custom for firefox 1.5.0.4

// Cache Prefs
user_pref("browser.cache.memory.capacity", 65536);
user_pref("browser.cache.disk.capacity", 76800);
user_pref("config.trim_on_minimize", true);
user_pref("network.dnsCacheExpiration", 3600);
user_pref("network.dnsCacheEntries", 512);

// HTTP Connection Prefs
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 24);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
//pref("network.ftp.idleConnectionTimeout", 60);
//pref("network.http.keep-alive.timeout", 30);

// HTTP Pipelining Prefs
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.firstrequest", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);

// Rendering Prefs
user_pref("browser.sessionhistory.max_viewers", 2);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("ui.submenuDelay", 50);
//pref("content.notify.ontimer", true);
//pref("content.interrupt.parsing", true);
//pref("content.notify.interval", 100);
//pref("content.notify.threshold", 100000);
//pref("content.notify.backoffcount", 200);
//pref("content.max.tokenizing.time", 3000000);
//pref("content.maxtextrun", 8191);
//pref("content.notify.interval", 100000);
//pref("content.notify.backoffcount", 10);
//pref("content.switch.threshold", 100000);

// Popups
user_pref("privacy.popups.disable_from_plugins", 2);
chenke_ikari
火狐狸
火狐狸
  • UID7468
  • 注册日期2005-07-21
  • 最后登录2008-08-05
  • 发帖数234
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
3楼#
发布于:2006-06-30 11:54
注意nglayout.initialpaint.delay和content.notify.interval的值保持一致。

「我對普通的人類沒有興趣。你們之中要是有小蘿莉, 無口女,當女僕的人,偽正太者,就儘管來找我吧! 以上。」
nighttalker
千年狐狸
千年狐狸
  • UID43
  • 注册日期2004-11-22
  • 最后登录2015-05-03
  • 发帖数2283
  • 经验40枚
  • 威望0点
  • 贡献值42点
  • 好评度0点
  • 社区居民
  • 忠实会员
4楼#
发布于:2006-06-30 11:54
well, 敢情是我的512内存太大了。我没这现象,官方给出警告,和药品给出副作用一个道理,有没有自己感觉好了。
目前最新版本是:Firefox 37,  请各位注意升级保证安全。
abc@home
千年狐狸
千年狐狸
  • UID6047
  • 注册日期2005-05-16
  • 最后登录2011-01-01
  • 发帖数1681
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
5楼#
发布于:2006-06-30 11:54
nighttalker:initialdelay 的问题,设为0我没有发现频繁调整layout的现象。事实上载入过程中调整layout的浏览器,到现在也只有opera一家。回到原帖


Firefox developer Asa Dotzler cleared up some of the myths surrounding these popular tweaks:
Yes, enabling HTTP pipelining can dramatically improve networking performance. The downside, and the reason it's not enabled by default, is that it can prevent Web pages from displaying correctly. If you've enabled this, and you find pages that aren't displaying correctly, please don't blame Firefox or the Web developer. It's probably the fact that you enabled an "unsupported" feature which is incompatible with some Web servers and proxy servers.

Setting the initial paint delay at zero, may get you some content on the screen faster, but it's worth noting that it will dramatically slow down the time it takes the entire page to display. Here's what's going on. Gecko, Firefox's rendering engine, is trying to optimize between the cost of waiting for a bit more data versus doing more painting and reflows as new data comes in. Waiting a bit longer before it starts painting the page gives Gecko a chance to receive more content before chewing up CPU cycles to render and reflow the document. If you drop this value down to zero or near zero, that means you'll see the page start displaying a bit earlier, but not having received much data in that short interval, you'll have a lot more paint and reflow cycles to complete rendering of the page.



WINXP SP2 MAXTHON (UNICODE) PROXOMITRON
abc@home
千年狐狸
千年狐狸
  • UID6047
  • 注册日期2005-05-16
  • 最后登录2011-01-01
  • 发帖数1681
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
6楼#
发布于:2006-06-30 11:54
客游:你可以去试一下8和30的区别,速度差别挺大的。
自己试过之后再说,别人云亦云
回到原帖

别假设我没试过。

http.pipelining.maxrequests 的上限早有定案 (至少在  mozillazine),信不信就由你了。



WINXP SP2 MAXTHON (UNICODE) PROXOMITRON
客游
千年狐狸
千年狐狸
  • UID5736
  • 注册日期2005-05-06
  • 最后登录2012-10-09
  • 发帖数1363
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
7楼#
发布于:2006-06-30 11:54
当内存小的时候,会出现的,我遇到了
nighttalker
千年狐狸
千年狐狸
  • UID43
  • 注册日期2004-11-22
  • 最后登录2015-05-03
  • 发帖数2283
  • 经验40枚
  • 威望0点
  • 贡献值42点
  • 好评度0点
  • 社区居民
  • 忠实会员
8楼#
发布于:2006-06-30 11:54
initialdelay 的问题,设为0我没有发现频繁调整layout的现象。事实上载入过程中调整layout的浏览器,到现在也只有opera一家。
目前最新版本是:Firefox 37,  请各位注意升级保证安全。
客游
千年狐狸
千年狐狸
  • UID5736
  • 注册日期2005-05-06
  • 最后登录2012-10-09
  • 发帖数1363
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
9楼#
发布于:2006-06-30 11:54
你可以去试一下8和30的区别,速度差别挺大的。
自己试过之后再说,别人云亦云
abc@home
千年狐狸
千年狐狸
  • UID6047
  • 注册日期2005-05-16
  • 最后登录2011-01-01
  • 发帖数1681
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
10楼#
发布于:2006-06-30 11:54
http://kb.mozillazine.org/Network.http. ... axrequests

Possible values and their effects

Any integer from 1 to 8 inclusive, determining the maximum number of requests to pipeline at once. A value of 1 effectively means "do not pipeline". (Default: 4)



WINXP SP2 MAXTHON (UNICODE) PROXOMITRON
客游
千年狐狸
千年狐狸
  • UID5736
  • 注册日期2005-05-06
  • 最后登录2012-10-09
  • 发帖数1363
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
11楼#
发布于:2006-06-30 11:54
你从哪里看到这个值的上限是8?
第二项正解,但是本次是为了提高速度显示,不冲突
abc@home
千年狐狸
千年狐狸
  • UID6047
  • 注册日期2005-05-16
  • 最后登录2011-01-01
  • 发帖数1681
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
12楼#
发布于:2006-06-30 11:54
客游:...
network.http.pipelining.maxrequests    value>30
...
回到原帖

这个值的上限是 8。

...
nglayout.initialpaint.delay    0(新建  integer)
...

这个值愈低,内容会愈早开始显示,但渲染时间会愈长,因为需要作更多的页面调整。



WINXP SP2 MAXTHON (UNICODE) PROXOMITRON
游客

返回顶部