diff options
author | Jeff Sharkey <jsharkey@android.com> | 2020-10-15 14:33:04 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2020-10-16 13:44:16 -0600 |
commit | af7c5f95cb963fcf482b84af434776337f69dbad (patch) | |
tree | 580e584c785c4e8948b268b52648e74b4059658e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | a3e52bf4e492786d3937d8926ea447e310f6ec98 (diff) |
Simple alternative to String.format().
This purposefully supports only a small handful of substitutions to
improve execution speed. Benchmarking reveals this optimized
alternative performs 6.5x faster for a typical format string.
Add Preconditions overloads that accept varargs to avoid string
formatting overhead in successful case.
Bug: 170978902
Test: atest FrameworksCoreTests:android.text.TextUtilsTest
Test: ./frameworks/base/libs/hwui/tests/scripts/prep_generic.sh little && atest CorePerfTests:android.text.TextUtilsPerfTest
Change-Id: I3fae4dc95cfc98a61c4a7f07ca0781c4a2ee3be9
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions