commit | c7f8e75806772e6b2414f5ee437caca6882bf5d4 | [log] [tgz] |
---|---|---|
author | Edgar Arriaga <edgararriaga@google.com> | Mon Apr 06 16:59:57 2020 -0700 |
committer | Winson Chiu <chiuwinson@google.com> | Fri Apr 17 18:38:29 2020 +0000 |
tree | 12ebf0343a565eb1830976eadd46aa91c8b64a5c | |
parent | 56ef0ea4b6d1a73d898c7c06e8e64589ce83cacd [diff] |
Optimization: remove duplicated flags computations for getInstalledPackages Below are some test runs that show 100 iterations of getInstalledPackages ran at activity startup of touchlatency app to demonstrate the perf cost. R Baseline: https://screenshot.googleplex.com/PnVi5APraJo https://pprof.corp.google.com/?id=dc105ca9592f8367c381e2dcf7f1847d R Optimized: https://pprof.corp.google.com/?id=2d1d9fadc20bcc61d41bd52116bd94e3 https://screenshot.googleplex.com/OAwJnvwPqPH Savings: 8% of system_server binder response time when the call is executed. In terms total binder transaction time. Savings are 2% of the total binder call time. Exempt-From-Owner-Approval: CP to correct branch for R Bug: 153656459 Test: atest FrameworksServicesTests:PackageParserTest Test: atest FrameworksServicesTests:PackageParserLegacyCoreTest Test: atest FrameworksServicesTests:ScanTests Test: atest FrameworksServicesTests:ParallelPackageParserTest Merged-In: I2de9cf1f754a505239d4416e1fc70bf77932c5db Change-Id: I2de9cf1f754a505239d4416e1fc70bf77932c5db (cherry picked from commit 7cb9e5f671dc02c15efcbceadb764026e0e70855)