WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
121499
Shrink SVGElement::cssPropertyIdForSVGAttributeName and cssPropertyToTypeMap
https://bugs.webkit.org/show_bug.cgi?id=121499
Summary
Shrink SVGElement::cssPropertyIdForSVGAttributeName and cssPropertyToTypeMap
Darin Adler
Reported
2013-09-17 09:44:43 PDT
Shrink SVGElement::cssPropertyIdForSVGAttributeName and cssPropertyToTypeMap
Attachments
Patch
(18.90 KB, patch)
2013-09-17 09:50 PDT
,
Darin Adler
kling
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2013-09-17 09:50:36 PDT
Created
attachment 211917
[details]
Patch
Andreas Kling
Comment 2
2013-09-17 09:58:20 PDT
Comment on
attachment 211917
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=211917&action=review
r=me
> Source/WebCore/svg/SVGElement.cpp:149 > + for (unsigned i = 0; i < WTF_ARRAY_LENGTH(attributeNames); ++i) { > + const AtomicString& localName = attributeNames[i]->localName(); > + map.add(localName.impl(), cssPropertyID(localName)); > + }
Can we reserve the necessary map capacity up front to avoid rehashing somehow?
> Source/WebCore/svg/SVGElement.cpp:222 > + for (unsigned i = 0; i < WTF_ARRAY_LENGTH(table); ++i) > + map.add(table[i].attributeName.impl(), table[i].type);
Same question.
Darin Adler
Comment 3
2013-09-17 10:12:55 PDT
Committed
r155969
: <
http://trac.webkit.org/changeset/155969
>
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