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

Issue 387313002: Shrink isValidNameNonASCII by using U16_NEXT only once. (Closed)

Created:
6 years, 5 months ago by Daniel Bratell
Modified:
6 years, 3 months ago
Reviewers:
fs, eseidel
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Shrink isValidNameNonASCII by using U16_NEXT only once. This function was much larger than expected (314 bytes in gcc) and I think it is because U16_NEXT is a large macro. Use it once instead of twice. Seems to have saved 144 bytes with gcc. U16_NEXT must be a crazily large macro: Shrunk symbols: -144: WebCore::Document::isValidName(WTF::String const&) type=t, (was 1253 bytes, now 1109 bytes) 74 bytes saved with clang: Shrunk symbols: -74: WebCore::Document::isValidName(WTF::String const&) type=t, (was 1190 bytes, now 1116 bytes) BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182236

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -10 lines) Patch
M Source/core/dom/Document.cpp View 1 chunk +5 lines, -10 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
Daniel Bratell
6 years, 3 months ago (2014-09-04 08:48:28 UTC) #2
fs
lgtm https://codereview.chromium.org/387313002/diff/1/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/387313002/diff/1/Source/core/dom/Document.cpp#newcode4108 Source/core/dom/Document.cpp:4108: for (unsigned i = 0; i < length;) ...
6 years, 3 months ago (2014-09-04 12:01:18 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/387313002/1
6 years, 3 months ago (2014-09-18 11:46:50 UTC) #5
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 12:35:43 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 182236

Powered by Google App Engine
This is Rietveld 408576698