summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2020-01-21 17:17:04 -0800
committerWinson <chiuwinson@google.com>2020-01-21 17:20:39 -0800
commit2997442ac56cfc30727fb6ae872fb0f5e38960e8 (patch)
treeed4959b5a298cc9842c3dadd885b5c66a31af2bf /tools/aapt2/java/JavaClassGenerator_test.cpp
parent17b76c623886c2575849c33266b233a51a982793 (diff)
Combine package parsing thread pools
A thread pool was being spawned for every partition, creating potentially 20 different threads. This can be constrained to MAX_THREADS (4) by passing the ExecutorService through the scan calls and only destroying it at the end. It's unclear how much of a benefit this has, but cleaning up these threads can't be a bad thing. Test: manual device scans/boots properly Test: atest ParallelPackageParserTest Bug: 146081131 Change-Id: If1f0cd4b2809000b5bb19a6f64a329619f4d45f4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions