[Webkit-unassigned] [Bug 86434] RuleSet::addToRuleSet wastes a bit of Vector capacity
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 15 09:51:23 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=86434
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|RuleSet::addToRuleSet |RuleSet::addToRuleSet
|wastes a lot of Vector |wastes a bit of Vector
|capacity |capacity
CC| |darin at apple.com
--- Comment #8 from Darin Adler <darin at apple.com> 2012-05-15 09:50:22 PST ---
In cases like this where we know the size the RuleSet will be before we create it, it would be more efficient to reserve capacity than to shrink to fit. All we’d have to do is make a RuleSet::create function overload that takes a capacity.
What do you guys think of that idea?
--
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