summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorPatrick Baumann <patb@google.com>2020-05-27 16:39:45 -0700
committerPatrick Baumann <patb@google.com>2020-06-09 15:31:33 +0000
commitc68d8124bb26c27914f3d7f2ac330b15b8d39e45 (patch)
treefecbf86be48d55b02966be83893550e9fe84ae9a /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent9f15ba2e1a42e64e03305500c4179a5ad87b7423 (diff)
Pre-cache filter results
This change adds a cache layer for the return of shouldFilterApplicationInternal in AppsFilter. This cuts most operations that rely on app filtering nearly in half by removing a good deal of branching that used to exist on the critical path for a crosshatch. Before this CL: android.os.PackageManagerPerfTest#testGetApplicationInfoWithFiltering: getApplicationInfoWithFiltering_mean: 983719 getApplicationInfoWithFiltering_standardDeviation: 120061 getApplicationInfoWithFiltering_median: 1061674 getApplicationInfoWithFiltering_min: 827489 android.multiuser.UserLifecycleTests#createAndStartUser: Mean (ms): 4243.10 After this CL: android.os.PackageManagerPerfTest#testGetApplicationInfoWithFiltering: getApplicationInfoWithFiltering_mean: 426340 getApplicationInfoWithFiltering_standardDeviation: 18861 getApplicationInfoWithFiltering_median: 427002 getApplicationInfoWithFiltering_min: 407887 android.multiuser.UserLifecycleTests#createAndStartUser: Mean (ms): 3387.25 Test: atest AppEnumerationTests AppsFilterTest PackageManagerPerfTests Fixes: 150405193 Change-Id: I3fb7d7cf8b98c7623caf04544523f1bbd07d1795 Merged-In: I3fb7d7cf8b98c7623caf04544523f1bbd07d1795
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions