Revert of Improve performance of Character::isCJKIdeographOrSymbol by using...
Revert of Improve performance of Character::isCJKIdeographOrSymbol by using trie tree (patchset #24 id:460001 of https://codereview.chromium.org/1541393003/ ) Reason for revert: GN asan and tsan are broken, wasn't aware bots are running GYP only. Reverting until we can figure out what to do with GN asan/tsan and probably msan. Original issue's description: > Improve performance of Character::isCJKIdeographOrSymbol by using trie tree > > This patch is another effort to make Character::isCJKIdeographOrSymbol > faster. > > The previous CL[1] made it faster by ~90% for codepoints below U+2020, > but codepoints abvoe U+2020 were not as fast. This CL makes all > codepoints faster, as fast as ICU functions. > > Before After Improve ICU > All 2569 => 292 88% 298 > ASCII 68 => 68 0% 160 > Han 2958 => 263 91% 344 > Hira 258 => 11 95% 14 > Arabic 37 => 32 13% 44 > * # of code points and iterations vary by rows. > > The previous CL[1] clarified that binary search is not as fast as ICU > functions such as uscript_getScript(). This patch changes to use > UTrie2, which is the data structure ICU property functions use. > > In addition in this patch: > * U+2763 and U+2764 are added as requested by drott@. > * Character::isUprightInMixedVertical() was switched to UTrie2 too. > * Character::isCJKIdeograph() was removed because it is no longer used. > > [1] https://codereview.chromium.org/1545073002 > > BUG=571943 > > Committed: https://crrev.com/e6dc3f425137021f39eddbbeb2035273ce36f986 > Cr-Commit-Position: refs/heads/master@{#371917} TBR=eae@chromium.org,drott@chromium.org,dpranke@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=571943 Review URL: https://codereview.chromium.org/1644893002 Cr-Commit-Position: refs/heads/master@{#372004}
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment