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

Issue 1281343003: Optimize RTL check in ICU to avoid mmap access. (Closed)

Created:
5 years, 4 months ago by danduong
Modified:
5 years, 4 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Optimize RTL check in ICU to avoid mmap access. Experiment suggests that we can improve Extensions.ExtensionServiceInitTime by 15% @ the 75-th percentile by avoiding this mmap access. Committed: https://crrev.com/399f02b7d4ba8d3ce8c2f7e4245c9bd992f5c8a0 Cr-Commit-Position: refs/heads/master@{#342949}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : compile fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -12 lines) Patch
M base/i18n/rtl.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M base/i18n/rtl.cc View 1 2 3 4 2 chunks +24 lines, -12 lines 2 comments Download
M base/i18n/rtl_unittest.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
danduong
5 years, 4 months ago (2015-08-11 01:39:37 UTC) #2
jungshik at Google
Thank you. Some nits below. https://codereview.chromium.org/1281343003/diff/1/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://codereview.chromium.org/1281343003/diff/1/base/i18n/rtl.cc#newcode134 base/i18n/rtl.cc:134: static const char* kRTLLocales[] ...
5 years, 4 months ago (2015-08-11 19:23:13 UTC) #3
danduong
https://codereview.chromium.org/1281343003/diff/1/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://codereview.chromium.org/1281343003/diff/1/base/i18n/rtl.cc#newcode134 base/i18n/rtl.cc:134: static const char* kRTLLocales[] = { On 2015/08/11 at ...
5 years, 4 months ago (2015-08-11 20:01:10 UTC) #4
jungshik at Google
https://codereview.chromium.org/1281343003/diff/20001/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://codereview.chromium.org/1281343003/diff/20001/base/i18n/rtl.cc#newcode143 base/i18n/rtl.cc:143: if (StartsWith(locale_name, rtl_locale, CompareCase::SENSITIVE)) One more thing I forgot ...
5 years, 4 months ago (2015-08-11 20:38:30 UTC) #5
jungshik at Google
https://codereview.chromium.org/1281343003/diff/20001/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://codereview.chromium.org/1281343003/diff/20001/base/i18n/rtl.cc#newcode143 base/i18n/rtl.cc:143: if (StartsWith(locale_name, rtl_locale, CompareCase::SENSITIVE)) On 2015/08/11 20:38:29, jungshik at ...
5 years, 4 months ago (2015-08-11 20:41:59 UTC) #6
danduong
https://codereview.chromium.org/1281343003/diff/20001/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://codereview.chromium.org/1281343003/diff/20001/base/i18n/rtl.cc#newcode143 base/i18n/rtl.cc:143: if (StartsWith(locale_name, rtl_locale, CompareCase::SENSITIVE)) On 2015/08/11 at 20:41:59, jungshik ...
5 years, 4 months ago (2015-08-11 21:03:16 UTC) #7
jungshik at Google
Thanks. LGTM
5 years, 4 months ago (2015-08-11 21:07:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1281343003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1281343003/40001
5 years, 4 months ago (2015-08-11 21:08:51 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/97846)
5 years, 4 months ago (2015-08-11 21:11:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1281343003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1281343003/60001
5 years, 4 months ago (2015-08-11 22:07:45 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/91929)
5 years, 4 months ago (2015-08-11 22:37:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1281343003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1281343003/80001
5 years, 4 months ago (2015-08-11 23:05:00 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-12 00:41:22 UTC) #21
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/399f02b7d4ba8d3ce8c2f7e4245c9bd992f5c8a0 Cr-Commit-Position: refs/heads/master@{#342949}
5 years, 4 months ago (2015-08-12 00:42:20 UTC) #22
Alexei Svitkine (slow)
https://codereview.chromium.org/1281343003/diff/80001/base/i18n/rtl.cc File base/i18n/rtl.cc (right): https://codereview.chromium.org/1281343003/diff/80001/base/i18n/rtl.cc#newcode157 base/i18n/rtl.cc:157: TextDirection GetTextDirectionForLocale(const char* locale_name) { Seems like the only ...
5 years, 4 months ago (2015-08-12 15:40:02 UTC) #24
danduong
5 years, 4 months ago (2015-08-12 17:22:42 UTC) #25
Message was sent while issue was closed.
https://codereview.chromium.org/1281343003/diff/80001/base/i18n/rtl.cc
File base/i18n/rtl.cc (right):

https://codereview.chromium.org/1281343003/diff/80001/base/i18n/rtl.cc#newcod...
base/i18n/rtl.cc:157: TextDirection GetTextDirectionForLocale(const char*
locale_name) {
On 2015/08/12 at 15:40:02, Alexei Svitkine wrote:
> Seems like the only place where GetTextDirectionForLocale() gets used after
this change (besides unit tests), is message_bundle.cc.
> 
> Does it still make sense to have this separate logic or can that call site
also be switched to the GetTextDirectionForLocaleInStartUp() codepath?

That's a good question. jshin@ I know your original suggestion was to have 2
different methods for this, but is it possible that we just make
GetTextDirectionForLocaleInStartUp the only method?

Powered by Google App Engine
This is Rietveld 408576698