diff options
author | Jeff Sharkey <jsharkey@android.com> | 2020-10-21 10:52:51 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2020-10-22 12:48:13 -0600 |
commit | 305ef9e1cffe02956b8f35fcbad155ce1baff8b6 (patch) | |
tree | 68886e7c1a00ee9dc573585388749729b4829a21 /rs/java/android/renderscript/ProgramStore.java | |
parent | c76708bc6883dff7b12b467572371486865a7eb4 (diff) |
Migrate hot codepaths to formatSimple().
The recently added TextUtils.formatSimple() can efficiently format
simple strings, roughly 6.5x faster than using String.format().
This change starts using this new method in hot codepaths identified
from pprof traces, and this CL alone should reduce system_process CPU
usage by 0.24%. Linked bug has detailed pprof screenshots.
Bug: 170978902
Test: atest FrameworksCoreTests:android.text.TextUtilsTest
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: Ie5a21a24be6dfcdb29768fe235e20f050fc111c7
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions