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

Issue 2241573004: Use StringView for String::replace. (Closed)

Created:
4 years, 4 months ago by esprehn
Modified:
4 years, 4 months ago
Reviewers:
haraken, jbroman
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use StringView for String::replace. This avoids allocating temporary strings when calling ::replace("a", "b"). Note that unlike other String simplifications done recently we don't add this API to AtomicString since doing replace() calls on an AtomicString and allocating more AtomicStrings isn't something we really expect people to do. BUG=615174 Committed: https://crrev.com/f4231901c30a54d3a94de3c7be22ffab13011032 Cr-Commit-Position: refs/heads/master@{#411846}

Patch Set 1 #

Patch Set 2 : names. #

Patch Set 3 : woops. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -47 lines) Patch
M third_party/WebKit/Source/wtf/text/StringImpl.h View 2 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 1 2 7 chunks +25 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 1 1 chunk +10 lines, -16 lines 0 comments Download

Messages

Total messages: 23 (18 generated)
esprehn
4 years, 4 months ago (2016-08-12 22:17:32 UTC) #16
haraken
LGTM
4 years, 4 months ago (2016-08-13 01:26:00 UTC) #18
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/2241573004/40001
4 years, 4 months ago (2016-08-13 01:27:29 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-13 01:32:52 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-08-13 01:38:54 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f4231901c30a54d3a94de3c7be22ffab13011032
Cr-Commit-Position: refs/heads/master@{#411846}

Powered by Google App Engine
This is Rietveld 408576698