Commit fb9ad6ef authored by alp@webkit.org's avatar alp@webkit.org
Browse files

2008-04-17 Alp Toker <alp@atoker.com>

        Rubber-stamped by Holger Freyther.

        Reduce hard-coded page-cache count to 3 based on research done for the
        Mac port on value / page.

        We will need to make this more dynamic or configurable at some point
        but for now it's best to keep closer to the behaviour before page
        caching was enabled.

        Issue spotted by Mark Rowe.

        * webkit/webkitprivate.cpp:
        (webkit_init):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 41c714d6
2008-04-17 Alp Toker <alp@atoker.com>
Rubber-stamped by Holger Freyther.
Reduce hard-coded page-cache count to 3 based on research done for the
Mac port on value / page.
We will need to make this more dynamic or configurable at some point
but for now it's best to keep closer to the behaviour before page
caching was enabled.
Issue spotted by Mark Rowe.
* webkit/webkitprivate.cpp:
(webkit_init):
2008-04-17 Daniele Metilli <daniele.metilli@gmail.com>
Reviewed by Eric.
......
......@@ -94,8 +94,10 @@ void webkit_init()
KJS::initializeThreading();
WebCore::InitializeLoggingChannelsIfNecessary();
// FIXME: Expose this with an API
WebCore::pageCache()->setCapacity(7);
// Page cache capacity (in pages). Comment from Mac port:
// (Research indicates that value / page drops substantially after 3 pages.)
// FIXME: Expose this with an API and/or calculate based on available resources
WebCore::pageCache()->setCapacity(3);
#if ENABLE(DATABASE)
// FIXME: It should be possible for client applications to override this default location
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment