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

Issue 2658703005: Make WTFString constructor that takes const char* call strlen inline (Closed)

Created:
3 years, 11 months ago by kinuko
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WTFString constructor that takes const char* call strlen inline This allows us to optimize away strlens for creating String from literal strings. (This actually showed up on my local profiling) BUG=673376 Review-Url: https://codereview.chromium.org/2658703005 Cr-Commit-Position: refs/heads/master@{#446670} Committed: https://chromium.googlesource.com/chromium/src/+/e973df73509337cabf6122bb4e15aa5a806e38b4

Patch Set 1 #

Total comments: 2

Patch Set 2 : delegate ctor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -11 lines) Patch
M third_party/WebKit/Source/wtf/text/WTFString.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.cpp View 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
kinuko
Another similar change to the other WebString one. What do you think?
3 years, 11 months ago (2017-01-27 07:07:28 UTC) #5
esprehn
lgtm https://codereview.chromium.org/2658703005/diff/1/third_party/WebKit/Source/wtf/text/WTFString.h File third_party/WebKit/Source/wtf/text/WTFString.h (right): https://codereview.chromium.org/2658703005/diff/1/third_party/WebKit/Source/wtf/text/WTFString.h#newcode94 third_party/WebKit/Source/wtf/text/WTFString.h:94: : String(characters, Delegate to the other constructor. : ...
3 years, 10 months ago (2017-01-27 09:25:51 UTC) #8
kinuko
https://codereview.chromium.org/2658703005/diff/1/third_party/WebKit/Source/wtf/text/WTFString.h File third_party/WebKit/Source/wtf/text/WTFString.h (right): https://codereview.chromium.org/2658703005/diff/1/third_party/WebKit/Source/wtf/text/WTFString.h#newcode94 third_party/WebKit/Source/wtf/text/WTFString.h:94: : String(characters, On 2017/01/27 09:25:51, esprehn wrote: > Delegate ...
3 years, 10 months ago (2017-01-27 12:52:24 UTC) #9
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/2658703005/20001
3 years, 10 months ago (2017-01-27 12:52:52 UTC) #12
Charlie Harrison
LGTM 2
3 years, 10 months ago (2017-01-27 13:25:43 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 15:15:35 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e973df73509337cabf6122bb4e15...

Powered by Google App Engine
This is Rietveld 408576698