AU: Increase full update chunk size to 1MiB
Previously it was set to 128KiB and many blocks were sent as REPLACE rather than
REPLACE_BZ. This CL reduces a sample full update payload from ~200MiB to ~187MiB.
BUG=none
TEST=unit tests, applied a full update to a device
Change-Id: I0cf733e8a9ff5f03d722b9f36179622728d0faf3
Review URL: http://codereview.chromium.org/3828003
diff --git a/delta_diff_generator.cc b/delta_diff_generator.cc
index 3011026..43192ee 100644
--- a/delta_diff_generator.cc
+++ b/delta_diff_generator.cc
@@ -50,9 +50,9 @@
namespace {
const size_t kBlockSize = 4096; // bytes
-const size_t kRootFSPartitionSize = 1 * 1024 * 1024 * 1024; // 1 GiB
+const size_t kRootFSPartitionSize = 1 * 1024 * 1024 * 1024; // bytes
const uint64_t kVersionNumber = 1;
-const uint64_t kFullUpdateChunkSize = 128 * 1024; // bytes
+const uint64_t kFullUpdateChunkSize = 1024 * 1024; // bytes
static const char* kInstallOperationTypes[] = {
"REPLACE",