diff options
author | Narayan Kamath <narayan@google.com> | 2016-11-24 13:22:40 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2017-01-05 19:15:31 +0000 |
commit | 5c50e8630164d7d9a1a097f70d2f8bcbf1bd854f (patch) | |
tree | b650e60d99951e1c645c6ca6f39508cb96bff47d /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 874d45597fb5267288b6cecc70df883b65e54be1 (diff) |
PackageManagerService: Implement packageParser cache in ParallelPackageParser.
We save about 2800ms of cold startup time over baseline on a marlin,
and ~1200 ms over the parallel parsing case.
warm cold
---------------
Baseline : 1700ms 4300ms
Parallel : 1400ms 2700ms
Cache : 1000ms 1600ms
Cache & parallel : 900ms 1500ms
Note that further changes will improve the speed of cache processing.
This change also includes support for :
- a flag that been flipped in code (currently set to false).
- disabling the cache via a system property.
- wiping the cache on system upgrades.
- cache versioning.
Bug: 30792387
Test: FrameworksServicesTests
Test: manual timing
Change-Id: I281710c110af5307901dd62ce93b515287c91918
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions