summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorFyodor Kupolov <fkupolov@google.com>2016-11-18 14:39:20 -0800
committerFyodor Kupolov <fkupolov@google.com>2016-11-28 10:32:34 -0800
commitfd6f4fb264d56726cd0e2fed731ad60bbe4aa06f (patch)
tree48ef772f7b5411ef547d277f825af4d1de75b6b2 /tools/aapt2/diff/Diff.cpp
parentc66cc5166e1a1c9ee11aa01e56ffa25cd5fa2bc3 (diff)
Parse packages in parallel
Introduced ParallelPackageParser. Parsing requests are processed by a thread-pool (currently 4 threads). At any time, at most 10 results are kept in RAM. This is enforced by the blocking queue. scanDir has become a two-stage process: 1) Collects files for parsing and submit them to the parallel parser 2) Sequentially take elements from the parsing queue and process them by calling scanPackageLI (as before) Test: manual - device boots, all packages are parsed Test: ParallelPackageParserTest passes Bug: 30792387 Change-Id: I07a64da4d83e355b2b1f1ab350e6d8087dfd2feb
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions