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

Issue 2288653002: Make custom element name checks faster and fewer (Closed)

Created:
4 years, 3 months ago by dominicc (has gone to gerrit)
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, kinuko+watch, loading-reviews+parser_chromium.org, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make custom element name checks faster and fewer This makes some changes to make things faster, suggested by esprehn in Issue 631931 and discussion: - Weakens some CHECKs that custom elements should be created to DCHECKs. - Specializes 8-bit strings. - Does a quick reject for names without hyphens. - Does one fewer name checks in the createElement case. BUG=631931, 639383 Committed: https://crrev.com/a67c4b53027ee270f17241d7a594ac10aef33790 Cr-Commit-Position: refs/heads/master@{#416959}

Patch Set 1 #

Patch Set 2 : Lift the is8Bit check. #

Total comments: 5

Patch Set 3 : Fresh start. No ExceptionState pointers. #

Total comments: 7

Patch Set 4 : Raw chars. #

Patch Set 5 : Raw 16-bit chars, too. #

Total comments: 3

Patch Set 6 : More feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -28 lines) Patch
M third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.h View 1 2 3 4 5 3 chunks +34 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.cpp View 1 2 6 chunks +12 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/text/Character.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 2 comments Download

Messages

Total messages: 41 (25 generated)
dominicc (has gone to gerrit)
PTAL FYI perf tryjob up at https://codereview.chromium.org/2292433002
4 years, 3 months ago (2016-08-29 06:52:55 UTC) #5
kouhei (in TOK)
https://codereview.chromium.org/2288653002/diff/20001/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl (right): https://codereview.chromium.org/2288653002/diff/20001/third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl#newcode28 third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl:28: ExceptionState* = 0, nullptr https://codereview.chromium.org/2288653002/diff/20001/third_party/WebKit/Source/core/dom/custom/CustomElement.h File third_party/WebKit/Source/core/dom/custom/CustomElement.h (right): https://codereview.chromium.org/2288653002/diff/20001/third_party/WebKit/Source/core/dom/custom/CustomElement.h#newcode39 ...
4 years, 3 months ago (2016-08-29 06:59:55 UTC) #8
esprehn
https://codereview.chromium.org/2288653002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2288653002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode168 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:168: : createElementSync(document, tagName); merge them together, there should be ...
4 years, 3 months ago (2016-08-30 21:32:32 UTC) #11
dominicc (has gone to gerrit)
PTAL FYI perf tryjob at https://codereview.chromium.org/2307533002
4 years, 3 months ago (2016-09-01 08:13:31 UTC) #14
dominicc (has gone to gerrit)
PTAL Perf job result looks OK for createElement. It claims ID getters regressed 30%! Looked ...
4 years, 3 months ago (2016-09-02 00:51:41 UTC) #18
esprehn
https://codereview.chromium.org/2288653002/diff/40001/third_party/WebKit/Source/core/dom/custom/CustomElement.h File third_party/WebKit/Source/core/dom/custom/CustomElement.h (right): https://codereview.chromium.org/2288653002/diff/40001/third_party/WebKit/Source/core/dom/custom/CustomElement.h#newcode42 third_party/WebKit/Source/core/dom/custom/CustomElement.h:42: // Note: All valid names start with an ASCII ...
4 years, 3 months ago (2016-09-02 00:53:20 UTC) #19
esprehn
https://codereview.chromium.org/2288653002/diff/40001/third_party/WebKit/Source/core/dom/custom/CustomElement.h File third_party/WebKit/Source/core/dom/custom/CustomElement.h (right): https://codereview.chromium.org/2288653002/diff/40001/third_party/WebKit/Source/core/dom/custom/CustomElement.h#newcode48 third_party/WebKit/Source/core/dom/custom/CustomElement.h:48: if (!Character::isPotentialCustomElementName8BitChar(name[i])) On 2016/09/02 at 00:53:20, esprehn wrote: > ...
4 years, 3 months ago (2016-09-02 00:55:31 UTC) #20
dominicc (has gone to gerrit)
On 2016/09/02 at 00:55:31, esprehn wrote: > https://codereview.chromium.org/2288653002/diff/40001/third_party/WebKit/Source/core/dom/custom/CustomElement.h > File third_party/WebKit/Source/core/dom/custom/CustomElement.h (right): > > https://codereview.chromium.org/2288653002/diff/40001/third_party/WebKit/Source/core/dom/custom/CustomElement.h#newcode48 ...
4 years, 3 months ago (2016-09-02 07:48:41 UTC) #25
esprehn
I think you missed my question about just looking up names in the registry. I ...
4 years, 3 months ago (2016-09-02 09:22:24 UTC) #26
dominicc (has gone to gerrit)
On 2016/09/02 at 09:22:24, esprehn wrote: > I think you missed my question about just ...
4 years, 3 months ago (2016-09-03 22:52:01 UTC) #31
esprehn
lgtm, though I'd really like us to file a spec bug and just not allow ...
4 years, 3 months ago (2016-09-07 03:54:05 UTC) #34
dominicc (has gone to gerrit)
On Tue, Sep 6, 2016 at 8:54 PM, <esprehn@chromium.org> wrote: > lgtm, though I'd really ...
4 years, 3 months ago (2016-09-07 15:06:03 UTC) #35
dominicc (has gone to gerrit)
On Tue, Sep 6, 2016 at 8:54 PM, <esprehn@chromium.org> wrote: > lgtm, though I'd really ...
4 years, 3 months ago (2016-09-07 15:06:07 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2288653002/100001
4 years, 3 months ago (2016-09-07 15:06:53 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-07 16:37:21 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 16:39:17 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a67c4b53027ee270f17241d7a594ac10aef33790
Cr-Commit-Position: refs/heads/master@{#416959}

Powered by Google App Engine
This is Rietveld 408576698