diff options
| author | 2023-02-22 11:20:09 -0800 | |
|---|---|---|
| committer | 2023-03-04 05:55:34 -0800 | |
| commit | 043d23a8a8e8fe214df0d10c4341c4ad55e7b2aa (patch) | |
| tree | 40b3c458c29cadeed4852729a0f20a4790f6df1f /libs/androidfw/StringPool.cpp | |
| parent | baf281de2be4e8118edf3766d39cb654860e41f1 (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