Bug 106484 - SVG-as-image: Throw out cached bitmap renderings after they sit unused for some time.
Summary: SVG-as-image: Throw out cached bitmap renderings after they sit unused for so...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: InRadar, Performance
Depends on:
Blocks:
 
Reported: 2013-01-09 12:26 PST by Andreas Kling
Modified: 2013-01-09 13:52 PST (History)
10 users (show)

See Also:


Attachments
Proposed patch (4.17 KB, patch)
2013-01-09 12:29 PST, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2013-01-09 12:26:56 PST
We currently cache the bitmaps for SVG files rendered into image elements to optimize repeated repaints.
We should throw out the cached bitmaps after some time if they aren't used to conserve memory.
~10MB is wasted on this on Membuster3.
Comment 1 Radar WebKit Bug Importer 2013-01-09 12:27:10 PST
<rdar://problem/12983216>
Comment 2 Andreas Kling 2013-01-09 12:29:41 PST
Created attachment 181969 [details]
Proposed patch
Comment 3 Pratik Solanki 2013-01-09 12:40:02 PST
We should also do this on memory warnings like bug 106471. But that can be a separate bug.
Comment 4 WebKit Review Bot 2013-01-09 13:52:33 PST
Comment on attachment 181969 [details]
Proposed patch

Clearing flags on attachment: 181969

Committed r139236: <http://trac.webkit.org/changeset/139236>
Comment 5 WebKit Review Bot 2013-01-09 13:52:37 PST
All reviewed patches have been landed.  Closing bug.