[Webkit-unassigned] [Bug 86434] RuleSet::addToRuleSet wastes a lot of Vector capacity

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 15 08:45:27 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=86434





--- Comment #4 from Simon Fraser (smfr) <simon.fraser at apple.com>  2012-05-15 08:44:31 PST ---
Previous data was not taking shrinkToFit into account. New data shows addToRuleSet() to be a lot less wasteful, but there is one stack that shows up in the top 20:

117 vectors, 7.11KB used of 73.12KB, 66.02KB wasted at:
1   0x108c1a255 WTF::Vector<WebCore::RuleData, 0ul>::Vector()
2   0x108c07a55 WTF::Vector<WebCore::RuleData, 0ul>::Vector()
3   0x108bfb4e1 WebCore::RuleSet::addToRuleSet(WTF::AtomicStringImpl*, WTF::HashMap<WTF::AtomicStringImpl*, WTF::OwnPtr<WTF::Vector<WebCore::RuleData, 0ul> >, WTF::PtrHash<WTF::AtomicStringImpl*>, WTF::HashTraits<WTF::AtomicStringImpl*>, WTF::HashTraits<WTF::OwnPtr<WTF::Vector<WebCore::RuleData, 0ul> > > >&, WebCore::RuleData const&)
4   0x108bfb6fb WebCore::RuleSet::addRule(WebCore::StyleRule*, WebCore::CSSSelector*, bool, bool, bool)
5   0x108beac71 _ZN7WebCoreL11makeRuleSetERKN3WTF6VectorINS_13StyleResolver11RuleFeatureELm0EEE

-- 
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