Changeset 24439 in webkit


Ignore:
Timestamp:
Jul 18, 2007 9:26:43 PM (17 years ago)
Author:
ggaren
Message:

Reviewed by Dave Hyatt.


<rdar://problem/5345099>


Reduced default WebCore cache size from 32 MB to 23 MB on systems below
512 MB RAM. This improves RPRVT usage in the Safari pageout test by
~10% on a system with 384 MB RAM.


At 23 MB, no extra resources are evicted from the cache during a PLT
run, so this is a safe change PLT-wise. 23 MB is also seems to be a
generous number in real world usage.

  • WebView/WebPreferences.m: (+[WebPreferences initialize]):
Location:
trunk/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/ChangeLog

    r24425 r24439  
     12007-07-18  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4       
     5        <rdar://problem/5345099>
     6       
     7        Reduced default WebCore cache size from 32 MB to 23 MB on systems below
     8        512 MB RAM. This improves RPRVT usage in the Safari pageout test by
     9        ~10% on a system with 384 MB RAM.
     10       
     11        At 23 MB, no extra resources are evicted from the cache during a PLT
     12        run, so this is a safe change PLT-wise. 23 MB is also seems to be a
     13        generous number in real world usage.
     14
     15        * WebView/WebPreferences.m:
     16        (+[WebPreferences initialize]):
     17
    1182007-07-18  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/WebKit/WebView/WebPreferences.m

    r24289 r24439  
    227227    else if (memSize >= 1024)
    228228        objectCacheSize = 64 * 1024 * 1024;
     229    else if (memSize >= 512)
     230        objectCacheSize = 32 * 1024 * 1024;
    229231    else
    230         objectCacheSize = 32 * 1024 * 1024;
     232        objectCacheSize = 23 * 1024 * 1024;
    231233    NSString *objectCacheSizeString = [NSString stringWithFormat:@"%d", objectCacheSize];
    232234
  • trunk/WebKit/win/WebPreferences.cpp

    r24129 r24439  
    158158    else if (memSize >= 1024)
    159159        objectCacheSize = 64 * 1024 * 1024;
     160    else if (memSize >= 512)
     161        objectCacheSize = 32 * 1024 * 1024;
    160162    else
    161         objectCacheSize = 32 * 1024 * 1024;
     163        objectCacheSize = 23 * 1024 * 1024;
    162164
    163165    CFStringRef key = CFSTR(WebKitStandardFontPreferenceKey);
Note: See TracChangeset for help on using the changeset viewer.