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

Issue 2702403013: Make HashTraits<QualifiedName>::emptyValue return a const reference (Closed)

Created:
3 years, 10 months ago by fs
Modified:
3 years, 9 months ago
Reviewers:
sof
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make HashTraits<QualifiedName>::emptyValue return a const reference This avoids unnecessary construction of a temporary object, saving a few cycles and some code-space (~2k on x86-64.) Also inline QualifiedName::null for some additional savings. Review-Url: https://codereview.chromium.org/2702403013 Cr-Commit-Position: refs/heads/master@{#455069} Committed: https://chromium.googlesource.com/chromium/src/+/6e888a3ff001229b5dc093c2b9186193c821f903

Patch Set 1 #

Patch Set 2 : Add CORE_EXPORT #

Patch Set 3 : Move export qualifier #

Patch Set 4 : Move const qualifier #

Patch Set 5 : extern declaration in the global scope #

Patch Set 6 : Try another position of the export macro #

Patch Set 7 : Global #

Total comments: 2

Patch Set 8 : Default inline null() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
M third_party/WebKit/Source/core/dom/QualifiedName.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/QualifiedName.cpp View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (34 generated)
fs
3 years, 9 months ago (2017-03-07 11:50:40 UTC) #28
sof
https://codereview.chromium.org/2702403013/diff/120001/third_party/WebKit/Source/core/dom/QualifiedName.h File third_party/WebKit/Source/core/dom/QualifiedName.h (right): https://codereview.chromium.org/2702403013/diff/120001/third_party/WebKit/Source/core/dom/QualifiedName.h#newcode184 third_party/WebKit/Source/core/dom/QualifiedName.h:184: inline const QualifiedName& QualifiedName::null() { I'd prefer to define ...
3 years, 9 months ago (2017-03-07 12:45:33 UTC) #29
fs
https://codereview.chromium.org/2702403013/diff/120001/third_party/WebKit/Source/core/dom/QualifiedName.h File third_party/WebKit/Source/core/dom/QualifiedName.h (right): https://codereview.chromium.org/2702403013/diff/120001/third_party/WebKit/Source/core/dom/QualifiedName.h#newcode184 third_party/WebKit/Source/core/dom/QualifiedName.h:184: inline const QualifiedName& QualifiedName::null() { On 2017/03/07 at 12:45:33, ...
3 years, 9 months ago (2017-03-07 13:30:33 UTC) #32
sof
lgtm
3 years, 9 months ago (2017-03-07 13:32:13 UTC) #33
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/2702403013/140001
3 years, 9 months ago (2017-03-07 14:28:00 UTC) #37
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 14:35:40 UTC) #40
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/6e888a3ff001229b5dc093c2b918...

Powered by Google App Engine
This is Rietveld 408576698