Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Issue 594413003: More efficient code for mapping event names and attribute names. (Closed)

Created:
6 years, 3 months ago by Daniel Bratell
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

More efficient code for mapping event names and attribute names. This changes repeated code to a loop and cuts HTMLElement::eventNameForAttributeName from 9 KB to 3 KB. clang, x64: Total change: -5952 bytes ========================= 1 shrunk, for a net change of -5952 bytes (9338 bytes before, 3386 bytes after) across 1 sources BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182820

Patch Set 1 #

Total comments: 2

Patch Set 2 : EventAttributeMap: Loop #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -85 lines) Patch
M Source/core/html/HTMLElement.cpp View 1 1 chunk +94 lines, -85 lines 1 comment Download

Messages

Total messages: 15 (4 generated)
Daniel Bratell
pdr, could you please take a look at this or suggest some reviewer if you ...
6 years, 2 months ago (2014-09-25 17:20:19 UTC) #2
pdr.
I think we can do even better by not creating this map dynamically. I poked ...
6 years, 2 months ago (2014-09-26 04:07:16 UTC) #4
Daniel Bratell
Since the tables (this and other similar ones) contain references to objects (AtomicStrings, QualifiedNames) they ...
6 years, 2 months ago (2014-09-26 08:10:51 UTC) #5
pdr.
On 2014/09/26 08:10:51, Daniel Bratell wrote: > Since the tables (this and other similar ones) ...
6 years, 2 months ago (2014-09-26 23:21:11 UTC) #6
abarth-chromium
On 2014/09/26 at 23:21:11, pdr wrote: > I think this is a fine change (can't ...
6 years, 2 months ago (2014-09-28 00:55:11 UTC) #7
pdr.
LGTM
6 years, 2 months ago (2014-09-28 01:32:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594413003/20001
6 years, 2 months ago (2014-09-28 01:34:08 UTC) #10
esprehn
On 2014/09/28 at 01:34:08, commit-bot wrote: > CQ is trying da patch. Follow status at ...
6 years, 2 months ago (2014-09-29 00:22:05 UTC) #11
esprehn
https://codereview.chromium.org/594413003/diff/20001/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/594413003/diff/20001/Source/core/html/HTMLElement.cpp#newcode312 Source/core/html/HTMLElement.cpp:312: attributeNameToEventNameMap.set(attrToEventNames[i].attr.localName(), attrToEventNames[i].event); Why not ditch the hash table entirely ...
6 years, 2 months ago (2014-09-29 00:23:04 UTC) #13
Daniel Bratell
About HashTables, I did some experiments a few months ago and it was about 300 ...
6 years, 2 months ago (2014-09-29 07:50:33 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 09:36:18 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 182820

Powered by Google App Engine
This is Rietveld 408576698