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

Issue 1971943002: Make normalize, collator:compare and breakiterator a bit more efficient (Closed)

Created:
4 years, 7 months ago by jungshik at Google
Modified:
4 years, 7 months ago
Reviewers:
Dan Ehrenberg, Yang
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Make normalize, collator, breakiterator faster 1. Normalizer: Use ICU's normalizer2 API instead of deprecated normalizer. Also uses quick scan method in the API to speed up in the most common cases (almost normalized and the target is NFC) 2. In all three cases, replace |v8::Utils::ToLocal(..)| with a more efficient internal method. BUG=v8:4983 TEST=intl/string/normal*, intl/collator/*, intl/break-iterator/* TEST=test262/intl402/Collator/*, test262/built-ins/String/prototype/normalize/* CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_noi18n_rel_ng Committed: https://crrev.com/a4e0ee12e4489a74069906fd12661b73fe51500f Cr-Commit-Position: refs/heads/master@{#36298}

Patch Set 1 #

Patch Set 2 : Collator and Normalizer: use more efficient way to extract UChar16 buffer #

Patch Set 3 : ignore this PS ! #

Patch Set 4 : go back to PS #2; rebased #

Total comments: 6

Patch Set 5 : use RUNTIME_ASSERT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -35 lines) Patch
M src/runtime/runtime-i18n.cc View 1 2 3 4 6 chunks +75 lines, -35 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971943002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971943002/20001
4 years, 7 months ago (2016-05-12 00:37:53 UTC) #4
jungshik at Google
PTAL, Thank you
4 years, 7 months ago (2016-05-12 00:41:09 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-12 01:07:04 UTC) #7
Yang
On 2016/05/12 01:07:04, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 7 months ago (2016-05-13 06:33:38 UTC) #9
jungshik at Google
On 2016/05/13 06:33:38, Yang wrote: > On 2016/05/12 01:07:04, commit-bot: I haz the power wrote: ...
4 years, 7 months ago (2016-05-13 23:41:18 UTC) #10
jungshik at Google
On 2016/05/13 23:41:18, jshin (jungshik at google) wrote: > On 2016/05/13 06:33:38, Yang wrote: > ...
4 years, 7 months ago (2016-05-13 23:44:32 UTC) #11
Dan Ehrenberg
Seems good to me, but I'd prefer if you wait until a review from Yang ...
4 years, 7 months ago (2016-05-16 22:55:39 UTC) #12
jungshik at Google
Thank you, Dan, for taking a look. 'normalize' and 'compare' are well covered by test262/intl402. ...
4 years, 7 months ago (2016-05-17 00:13:51 UTC) #13
Yang
LGTM with comment. https://codereview.chromium.org/1971943002/diff/60001/src/runtime/runtime-i18n.cc File src/runtime/runtime-i18n.cc (right): https://codereview.chromium.org/1971943002/diff/60001/src/runtime/runtime-i18n.cc#newcode633 src/runtime/runtime-i18n.cc:633: if (!normalizer) return isolate->ThrowIllegalOperation(); Do you ...
4 years, 7 months ago (2016-05-17 05:09:33 UTC) #14
jungshik at Google
On 2016/05/17 05:09:33, Yang wrote: > LGTM with comment. > > https://codereview.chromium.org/1971943002/diff/60001/src/runtime/runtime-i18n.cc > File src/runtime/runtime-i18n.cc ...
4 years, 7 months ago (2016-05-17 22:16:36 UTC) #16
jungshik at Google
Yang's comment was addressed, btw. https://codereview.chromium.org/1971943002/diff/60001/src/runtime/runtime-i18n.cc File src/runtime/runtime-i18n.cc (right): https://codereview.chromium.org/1971943002/diff/60001/src/runtime/runtime-i18n.cc#newcode633 src/runtime/runtime-i18n.cc:633: if (!normalizer) return isolate->ThrowIllegalOperation(); ...
4 years, 7 months ago (2016-05-17 22:16:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971943002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971943002/80001
4 years, 7 months ago (2016-05-17 22:31:36 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-17 23:00:19 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 23:01:36 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a4e0ee12e4489a74069906fd12661b73fe51500f
Cr-Commit-Position: refs/heads/master@{#36298}

Powered by Google App Engine
This is Rietveld 408576698