Remove nSetLocales
nSetLocales needed to be done at the same time of addStyleRun. So it is natural to be the arguments of addStyleRun. Since locale change detection take longer time in native, check it in Java and pass null if not changed. Here is an example of StaticLayoutPerfTestResult. Before (median): createRandom: 3,422,247 createRandom(breakBalanced): 3,448,865 create: 183,642 After: createRandom: 3,493,079 createRandom(breakBalanced): 3,495,381 create: 193,363 Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit CtsTextTestCases:android.text.cts.DynamicLayoutTest Test: bit CtsTextTestCases:android.text.cts.StaticLayoutTest Test: minikin_tests Bug: 65175766 Bug: 65024629 Change-Id: I4586cef626f631d4736b0db59ba9f3f6abd3d4ff
Loading
Please register or sign in to comment