summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2020-10-21 10:52:51 -0600
committerJeff Sharkey <jsharkey@android.com>2020-10-22 12:48:13 -0600
commit305ef9e1cffe02956b8f35fcbad155ce1baff8b6 (patch)
tree68886e7c1a00ee9dc573585388749729b4829a21 /rs/java/android/renderscript/ProgramStore.java
parentc76708bc6883dff7b12b467572371486865a7eb4 (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