Parallelize delta generation across partition
On my machine, this change alone reduces incremental
OTA generation time from 56 minutes to 29 minutes
Test: Generate and serve an OTA
Change-Id: Id4ffc6f02f28594eb60cb934777b82f1899bbbc2
diff --git a/payload_generator/payload_file.cc b/payload_generator/payload_file.cc
index 940e9bd..c1594c7 100644
--- a/payload_generator/payload_file.cc
+++ b/payload_generator/payload_file.cc
@@ -86,10 +86,10 @@
bool PayloadFile::AddPartition(const PartitionConfig& old_conf,
const PartitionConfig& new_conf,
- const vector<AnnotatedOperation>& aops) {
+ vector<AnnotatedOperation> aops) {
Partition part;
part.name = new_conf.name;
- part.aops = aops;
+ part.aops = std::move(aops);
part.postinstall = new_conf.postinstall;
part.verity = new_conf.verity;
// Initialize the PartitionInfo objects if present.
@@ -172,9 +172,7 @@
TEST_AND_RETURN_FALSE(PayloadSigner::SignatureBlobLength(
{private_key_path}, &signature_blob_length));
PayloadSigner::AddSignatureToManifest(
- next_blob_offset,
- signature_blob_length,
- &manifest_);
+ next_blob_offset, signature_blob_length, &manifest_);
}
// Serialize protobuf