WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 18955
18956
CachedScript and CachedCSSStyleSheet double-retain memory
https://bugs.webkit.org/show_bug.cgi?id=18956
Summary
CachedScript and CachedCSSStyleSheet double-retain memory
Mike Belshe
Reported
2008-05-08 16:05:18 PDT
CachedScript and CachedCSSStyleSheet both derive from CachedResource. CachedResource contains a StringBuffer m_data. Internally, when data is assigned to the CachedScript and CachedCSSStyleSheet, they decode the m_data buffer, and store the result into a private string (m_script and m_sheet, respectively). Thus, each of these objects has two in-memory copies of the cached object. The m_data is actually not needed and can be removed. The only thing which uses it is the InspectorController; and that usage can be removed with a small amount of work. For www.cnn.com, this led to a 600KB footprint reduction. For www.yahoo.com, this led to a ~2MB footprint reduction. I will post a patch when it's ready.
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2008-05-08 17:27:46 PDT
*** This bug has been marked as a duplicate of
18955
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug