[Webkit-unassigned] [Bug 53871] New: Refactor Font::normalizeSpaces() to avoid an extra String copy.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Feb 6 07:23:41 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=53871
Summary: Refactor Font::normalizeSpaces() to avoid an extra
String copy.
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: kling at webkit.org
Font::normalizeSpaces() could take an UChar*/length pair as arguments instead of a String.
All call sites create a temporary String for passing to this function, and there is some cleverness in normalizeSpaces() to reuse that String if no spaces are normalized.
We should let normalizeSpaces() do the String creation which means we'll always make 1 String instead of 1 in the best case and 2 in the worst case.
--
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