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

Issue 1545073002: Make Character::isCJKIdeographOrSymbol() faster for common characters (Closed)

Created:
4 years, 12 months ago by kojii
Modified:
4 years, 11 months ago
Reviewers:
drott, eae
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, vmpstr+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Character::isCJKIdeographOrSymbol() faster for common characters This patch makes Character::isCJKIdeographOrSymbol() faster for: 1. Check cjkSymbolRanges earlier than cjkIsolatedSymbols. Because the former is much more commonly used, it improves common cases. 2. Add the first/last optimization for cjkSymbolRanges check. This improves characters outside the cjkSymbolRanges. 3. Check U+02C7, U+02CA, U+02CB, U+02D9 separately. Since these are the only CJK below U+2020, this improves the performance below U+2020. As the result of these changes, following improvements are seen in local debug builds. Average of all code points: 5673 -> 2760 (50% improve) Han Ideograph Basic block: 5044 -> 3223 (36% improve) Hiragana: 342 -> 269 (21% improve) Arabic: 748 -> 51 (93% improve) No code path changes for code points below U+02C7. No behavior changes. BUG=571943, 571654 Committed: https://crrev.com/00b5736be468f8511e73954cdd5d2eb2256acbdd Cr-Commit-Position: refs/heads/master@{#366993}

Patch Set 1 #

Patch Set 2 : Minor simplification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -11 lines) Patch
M third_party/WebKit/Source/platform/fonts/Character.cpp View 1 2 chunks +17 lines, -11 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
kojii
PTAL.
4 years, 12 months ago (2015-12-24 07:47:51 UTC) #6
eae
LGTM This is awesome and you should feel awesome! Thank you!
4 years, 11 months ago (2015-12-28 17:04:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545073002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545073002/40001
4 years, 11 months ago (2015-12-28 17:05:02 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 11 months ago (2015-12-28 18:36:49 UTC) #12
commit-bot: I haz the power
4 years, 11 months ago (2015-12-28 18:38:28 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/00b5736be468f8511e73954cdd5d2eb2256acbdd
Cr-Commit-Position: refs/heads/master@{#366993}

Powered by Google App Engine
This is Rietveld 408576698