[Webkit-unassigned] [Bug 77867] New: Decrease total memory usage of CSSStyleSelector::appendAuthorStylesheets
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 6 06:02:11 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=77867
Summary: Decrease total memory usage of
CSSStyleSelector::appendAuthorStylesheets
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: zoltan at webkit.org
CC: koivisto at iki.fi
CSSStyleSelector::appendAuthorStylesheets was introduced in r104060 bug #75508
I was investigating total memory usage with Freya tool (http://webkit.sed.hu/blog/20091127/new-tool-extract-meaningful-memory-consumption-values-valgrind-shines-again) and I found that calling Vector's shrinkToFit method generates a lot of memory usage.
shrinkToFit function call of appendAuthorStylesheets is accountable for 5.6 megabytes total memory allocation while it has only 452 kbytes peak.
My question: is it necessary to call shrinkToFit in appendAuthorStylesheets? If it is then do you have any idea about a lazy-calling way?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list