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

Issue 1324453007: Reland: Speedup stringsearch for two byte strings (Closed)

Created:
5 years, 3 months ago by skomski
Modified:
5 years, 3 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Reland: Speedup stringsearch for two byte strings Uses the lower byte with memchr which is significantly faster than a naive compare Performance difference with bench (http://hastebin.com/xuxexataso.js): old new single character single character Κ found at 922 Κ found at 922 3324 616 ㎡ found at 13217 ㎡ found at 13217 42366 4931 က found at 4096 က found at 4096 13369 9836 ＀ found at 65280 ＀ found at 65280 207472 36149 ᆬ found at 65445 ᆬ found at 65445 209344 36666   found at 8197   found at 8197 26731 11757 倂 found at 20482 倂 found at 20482 66071 17193 linear search linear search ΚΛ found at 922 ΚΛ found at 922 4112 504 ㎡㎢ found at 13217 ㎡㎢ found at 13217 55105 5119 ᆬᆭ found at 65445 ᆬᆭ found at 65445 268016 35496 linear + bmh search linear + bmh search ΚΛΜΝΞΟΠΡ found at 922 ΚΛΜΝΞΟΠΡ found at 922 2897 522 ᆬᆭᄃᄄᄅᆰᆱᆲ found at 65445 ᆬᆭᄃᄄᄅᆰᆱᆲ found at 65445 167687 35283 BUG= Committed: https://crrev.com/24d481165cfda1669c92c06c0a67348f3e4add91 Cr-Commit-Position: refs/heads/master@{#30597}

Patch Set 1 #

Patch Set 2 : Fix out-of-bounds access #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -37 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M src/string-search.h View 1 4 chunks +44 lines, -37 lines 0 comments Download
M test/mjsunit/string-indexof-1.js View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
skomski
Is it possible to run the msan or fuzzer bot before landing the commit?
5 years, 3 months ago (2015-09-04 18:08:10 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324453007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324453007/60001
5 years, 3 months ago (2015-09-04 18:29:14 UTC) #6
Jakob Kummerow
Looks good. You can run the fuzzer locally: make x64.debug && tools/fuzz-harness.sh out/x64.debug/d8 We seem ...
5 years, 3 months ago (2015-09-04 18:32:31 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-04 18:52:12 UTC) #9
Jakob Kummerow
lgtm
5 years, 3 months ago (2015-09-04 19:57:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324453007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324453007/60001
5 years, 3 months ago (2015-09-04 19:57:13 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 3 months ago (2015-09-04 19:58:42 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/24d481165cfda1669c92c06c0a67348f3e4add91 Cr-Commit-Position: refs/heads/master@{#30597}
5 years, 3 months ago (2015-09-04 19:58:55 UTC) #14
skomski
Since it failed on mips should I revert the patchset or should I quickly submit ...
5 years, 3 months ago (2015-09-05 09:02:50 UTC) #15
Michael Achenbach
5 years, 3 months ago (2015-09-05 10:20:06 UTC) #16
Message was sent while issue was closed.
On 2015/09/05 09:02:50, skomski wrote:
> Since it failed on mips should I revert the patchset or should I quickly
submit
> a review before monday?

It's on big endian only. No revert needed. And no hurries.

Powered by Google App Engine
This is Rietveld 408576698