Browser.sessionhistory.max total viewers: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
m (→‎Background: clarify the other cache is the memory cache, and wikify the term)
 
(5 intermediate revisions by 5 users not shown)
Line 2: Line 2:


==Background==
==Background==
Pages that were recently visited are stored in memory in such a way that they don't have to be re-rendered (this is different than the cache). This improves performance when pressing Back and Forward. This preference controls the maximum amount of pages to store in memory. On average, one page uses 4MB of memory.
Pages that were recently visited are stored in memory in such a way that they don't have to be re-parsed (this is different from the [[browser.cache.memory.capacity|memory cache]]). This improves performance when pressing Back and Forward.
 
This preference limits the maximum number of pages stored in memory.


==Possible values and their effects==
==Possible values and their effects==
<!-- Hey! You! This is not the place to change your preferences! You need to do that in about:config. See the top of the article for details. -->
===-1===
===-1===
<!-- Hey! You! This is not the place to change your preferences! You need to do that in about:config. See the top of the article for details. -->
Automatically determine the maximum amount of pages to store in memory based on the total amount of RAM (Default)
Automatically determine the maximum amount of pages to store in memory based on the total amount of RAM (Default)
{| {{prettytable}}
{| {{prettytable}}
Line 35: Line 39:
| 8
| 8
|}
|}
===0===
===0===
<!-- Hey! You! This is not the place to change your preferences! You need to do that in about:config. See the top of the article for details. -->
Do not store any pages in memory.
Do not store any pages in memory.


===Any positive integer===
===Any positive integer===
<!-- Hey! You! This is not the place to change your preferences! You need to do that in about:config. See the top of the article for details. -->
Maximum number of pages to store in memory.
Maximum number of pages to store in memory.


==Caveats==
==Caveats==
* Lowering this value causes less memory to be used but also causes more previously visited pages to have to be rerendered (thus increasing their load time). Raising it has the opposite effect. One page will on average take 4MB of memory.
* Lowering this value causes less memory to be used but also causes more previously visited pages to have to be re-parsed (thus increasing their load time). Raising it has the opposite effect. One page will on average take 4MB of memory.


==Recommended settings==
==Recommended settings==
Line 52: Line 59:
==Has an effect in==
==Has an effect in==
* Firefox (all versions since 1.5b2)
* Firefox (all versions since 1.5b2)
* Seamonkey (all versions)
* SeaMonkey (all versions)


==Related bugs==
==Related bugs==
* [https://bugzilla.mozilla.org/show_bug.cgi?id=274784 Bug 274784 - Make back and forward blazingly fast and side-effect free]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=274784 Bug 274784 - Make back and forward blazingly fast and side-effect free]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=292965 Bug 292965 - Improve eviction algorithm for fastback/bfcache]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=292965 Bug 292965 - Improve eviction algorithm for fastback/bfcache]
See [http://developer.mozilla.org/en/docs/Using_Firefox_1.5_caching Using Firefox 1.5 caching] for developer details on this feature.


[[Category:Preferences]]
[[Category:Preferences]]

Latest revision as of 15:54, 24 July 2007

Background

Pages that were recently visited are stored in memory in such a way that they don't have to be re-parsed (this is different from the memory cache). This improves performance when pressing Back and Forward.

This preference limits the maximum number of pages stored in memory.

Possible values and their effects

-1

Automatically determine the maximum amount of pages to store in memory based on the total amount of RAM (Default)

RAM Pages
32MB 0
64MB 1
128MB 2
256MB 3
512MB 5
1GB 8
2GB 8
4GB 8

0

Do not store any pages in memory.

Any positive integer

Maximum number of pages to store in memory.

Caveats

  • Lowering this value causes less memory to be used but also causes more previously visited pages to have to be re-parsed (thus increasing their load time). Raising it has the opposite effect. One page will on average take 4MB of memory.

Recommended settings

Users who are having problems with memory consumption can try setting the value to something lower than specified in the table above to lower memory consumption. Users who have no problems with memory should leave it at -1.

First checked in

2005-09-23 by Brian Ryner

Has an effect in

  • Firefox (all versions since 1.5b2)
  • SeaMonkey (all versions)

Related bugs

See Using Firefox 1.5 caching for developer details on this feature.