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

Issue 2225173002: Use StringView for String::find. (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::find. This merges all of the StringImpl::find code paths for non-single letter cases by using StringView. I also made all of the find overloads match for String and AtomicString. BUG=615174 Committed: https://crrev.com/54316d7250bc5a6e48ad1161cf6014081b7f7b89 Cr-Commit-Position: refs/heads/master@{#410547}

Patch Set 1 #

Patch Set 2 : Add missing null check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -194 lines) Patch
M third_party/WebKit/Source/wtf/text/AtomicString.h View 1 chunk +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.h View 1 chunk +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 7 chunks +33 lines, -165 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 1 2 chunks +5 lines, -16 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
esprehn
4 years, 4 months ago (2016-08-08 21:05:36 UTC) #4
jbroman
lgtm, but please be on the lookout for possible perf regressions. I suspect the compiler ...
4 years, 4 months ago (2016-08-08 21:18:30 UTC) #7
esprehn
On 2016/08/08 at 21:18:30, jbroman wrote: > lgtm, but please be on the lookout for ...
4 years, 4 months ago (2016-08-08 21:23:51 UTC) #8
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/2225173002/20001
4 years, 4 months ago (2016-08-08 23:28:13 UTC) #11
haraken
LGTM
4 years, 4 months ago (2016-08-08 23:32:43 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-09 02:41:39 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 02:45:02 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/54316d7250bc5a6e48ad1161cf6014081b7f7b89
Cr-Commit-Position: refs/heads/master@{#410547}

Powered by Google App Engine
This is Rietveld 408576698