[webkit-dev] Tweaking cache size for embedded browser

zaheer ahmad zaheer.mot at gmail.com
Wed Sep 17 01:22:53 PDT 2008


i think the below is related to JS engine. i was referring to the cached
resources(css, js, images etc)  - WebCore/loader/Cache.cpp:44
static const int cDefaultCacheCapacity = 8192 * 1024;

regards,
Zaheer


On Wed, Sep 17, 2008 at 1:23 PM, Paul Pedriana <ppedriana at gmail.com> wrote:

>  That was discussed last month. See the thread at:
> https://lists.webkit.org/pipermail/webkit-dev/2008-August/004719.html
>
> I am currently running my copy like this:
>
>         enum { DefaultCapacity = 2 * 256 * 1024 / sizeof(Register)};   //
> Originally (2 * 1024 * 1024 / sizeof(Register))
>         enum { DefaultMaxGlobals = 4 * 1024 };                         //
> Originally (8 * 1024)
>
>
>
>
>
>  hi,
> webkit currently reserves 8Mb of cache space (refer: Cache.cpp). This seems
> too high for an embedded browser that should work with as less as 10Mb of
> RAM. Other than the performance/reload of resource impact are there any side
> effects by reducing this or totally disabling it. one feature that
> inherently relies on cache is the navigation history, however in our tests
> we see that there is no impact other than the reload (e.g. form data is
> preserved in navigation).
> we think that a small cache ~500k is more appropriate to help for content
> thats repeated in the same page being refetched.
> appreciate any inputs on this.
>
> thanks,
> Zaheer
>
> ------------------------------
>
> _______________________________________________
> webkit-dev mailing listwebkit-dev at lists.webkit.orghttp://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20080917/0d1b11fe/attachment.html 


More information about the webkit-dev mailing list