Changeset 10476 in webkit
- Timestamp:
- Sep 6, 2005, 2:40:13 PM (19 years ago)
- Location:
- trunk/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/ChangeLog
r10474 r10476 1 2005-09-06 David Hyatt <hyatt@apple.com> 2 3 Reduce the # of cached pages for a back/forward list. The old cache would cache the 4 following per tab: 5 > 1gb memory = 16 pages per tab/window 6 > 512mb memory = 8 pages per tab/window 7 <= 512mb memory = 4 pages per tab/window 8 9 This consumes far too much memory and is way too aggressive. The new cache sizes are 10 as follows: 11 >= 1gb memory = 3 pages per tab/window 12 >= 512mb memory = 2 pages per tab/window 13 < 512mb memory = 1 page per tab/window 14 15 Reviewed by john 16 17 * History.subproj/WebBackForwardList.m: 18 (-[WebBackForwardList pageCacheSize]): 19 * WebView.subproj/WebPreferences.m: 20 (+[WebPreferences initialize]): 21 1 22 2005-09-05 Darin Adler <darin@apple.com> 2 23 -
trunk/WebKit/History.subproj/WebBackForwardList.m
r9276 r10476 311 311 unsigned s; 312 312 vm_size_t memSize = WebSystemMainMemory(); 313 unsigned multiplier = 1;314 313 315 314 s = [[WebPreferences standardPreferences] _pageCacheSize]; 316 if (memSize > 1024 * 1024 * 1024) 317 multiplier = 4; 318 else if (memSize > 512 * 1024 * 1024) 319 multiplier = 2; 315 if (memSize >= 1024 * 1024 * 1024) 316 _private->pageCacheSize = s; 317 else if (memSize >= 512 * 1024 * 1024) 318 _private->pageCacheSize = s - 1; 319 else 320 _private->pageCacheSize = s - 2; 320 321 321 322 #ifndef NDEBUG … … 325 326 } 326 327 #endif 327 328 _private->pageCacheSize = s * multiplier;329 328 } 330 329 -
trunk/WebKit/WebView.subproj/WebPreferences.m
r10215 r10476 213 213 @"13", WebKitDefaultFixedFontSizePreferenceKey, 214 214 @"ISO-8859-1", WebKitDefaultTextEncodingNamePreferenceKey, 215 @" 4", WebKitPageCacheSizePreferenceKey,215 @"3", WebKitPageCacheSizePreferenceKey, 216 216 @"8388608", WebKitObjectCacheSizePreferenceKey, 217 217 [NSNumber numberWithBool:NO], WebKitUserStyleSheetEnabledPreferenceKey,
Note:
See TracChangeset
for help on using the changeset viewer.