Add multi thread support for A/B generator
Use threadpool to calculate file deltas in parallel. This decreases the
time consumption from 40 mins to 13 mins for the incremental payload generation
of two taimen system images.
BUG=b:62470452
TEST=Unit tests pass && generate an identical payload for incremental
taimen as before
Change-Id: Ie295504b758a1baa6b661c76bcbb6aa7881ded5d
(cherry picked from commit c4ad1ebc33abc088aca2909ba5cbaf7ae5e5659f)
Reviewed-on: https://chromium-review.googlesource.com/731724
Commit-Ready: Amin Hassani <ahassani@chromium.org>
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Sen Jiang <senj@chromium.org>
3 files changed