summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Haoyu Zhang <haoyuchang@google.com> 2023-02-22 11:20:09 -0800
committer Haoyu Zhang <haoyuchang@google.com> 2023-03-04 05:55:34 -0800
commit043d23a8a8e8fe214df0d10c4341c4ad55e7b2aa (patch)
tree40b3c458c29cadeed4852729a0f20a4790f6df1f /libs/androidfw/StringPool.cpp
parentbaf281de2be4e8118edf3766d39cb654860e41f1 (diff)
Optimize GraphemeClusterSegmentFinder performance
This CL utilized minikin:isGraphemeBreak to compute all grapheme break indices when creating GraphemeClusterSegmentFinder. This makes all methods (such as #nextStartBoundary) of GraphemeClusterSegmentFinder O(1) instead of O(n). Bug: 271004887 Test: atest TextViewHandwritingGestureTest Change-Id: I61c1f2c45123a584456b4860b72cd4fdc84c5f1c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions