summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2018-09-12 16:50:08 -0700
committerSeigo Nonaka <nona@google.com>2018-09-13 10:58:14 -0700
commit0eb713d17a45520832aac4e69ed5ec2af3558b1b (patch)
treeef9830dc1f16cefc2248e880a02ef137508b8428 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent7ee06167def672bf961d023fc281878400bf8806 (diff)
Create LocaleList and HashSet lazily to save OS boot time
Creating HashSet and LocaleList in Zygote make performance impact to the boot time. Since this API is not called so frequently and less application is expected to call this API. So let's make Set and LocaleList only when it is requested. Here is a result of boot time perf test: Before: TOTAL_BOOT_TIME : 16229.5 After : TOTAL_BOOT_TIME : 11704.0 Bug: 114774424 Test: atest android.graphics.fonts Test: atest TypefaceSystemFallbackTest Change-Id: I07247a78f6091c8adfaac748fe4a77a4597b1ae2
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions