We can significantly reduce peak memory usage by dropping decoded image data between pages. Most images won't be reused, and if any are, they can be re-decoded at low cost.
Created attachment 272415 [details] Patch
Attachment 272415 [details] did not pass style-queue: ERROR: Source/WebCore/loader/cache/MemoryCache.cpp:285: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 272416 [details] Patch
Attachment 272416 [details] did not pass style-queue: ERROR: Source/WebCore/loader/cache/MemoryCache.cpp:285: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 272416 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=272416&action=review > Source/WebCore/loader/cache/MemoryCache.h:105 > + void forEachResource(std::function<void(CachedResource&)>); Would make this const& to avoid copying.
Created attachment 272417 [details] Patch for landing
Comment on attachment 272417 [details] Patch for landing Clearing flags on attachment: 272417 Committed r197254: <http://trac.webkit.org/changeset/197254>
All reviewed patches have been landed. Closing bug.