summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-04-20 17:21:34 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-04-20 17:21:34 +0200
commit5be36da6518cc0707e8cdcdc6382999efcf70f17 (patch)
treebb3c5e356f05da06dea3b3fb9430650e1b3d1945
parentMerge "Update the system update animation." into nyc-dev (diff)
parentDecrease OTA package verification times further. (diff)
downloadandroid_bootable_recovery-5be36da6518cc0707e8cdcdc6382999efcf70f17.tar
android_bootable_recovery-5be36da6518cc0707e8cdcdc6382999efcf70f17.tar.gz
android_bootable_recovery-5be36da6518cc0707e8cdcdc6382999efcf70f17.tar.bz2
android_bootable_recovery-5be36da6518cc0707e8cdcdc6382999efcf70f17.tar.lz
android_bootable_recovery-5be36da6518cc0707e8cdcdc6382999efcf70f17.tar.xz
android_bootable_recovery-5be36da6518cc0707e8cdcdc6382999efcf70f17.tar.zst
android_bootable_recovery-5be36da6518cc0707e8cdcdc6382999efcf70f17.zip
-rw-r--r--verifier.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/verifier.cpp b/verifier.cpp
index 4004b0228..f5299b4a2 100644
--- a/verifier.cpp
+++ b/verifier.cpp
@@ -206,10 +206,10 @@ int verify_file(unsigned char* addr, size_t length,
double frac = -1.0;
size_t so_far = 0;
while (so_far < signed_len) {
- // On a Nexus 9, experiment didn't show any performance improvement with
- // larger sizes past 1MiB, and they reduce the granularity of the progress
- // bar. http://b/28135231.
- size_t size = std::min(signed_len - so_far, 1 * MiB);
+ // On a Nexus 5X, experiment showed 16MiB beat 1MiB by 6% faster for a
+ // 1196MiB full OTA and 60% for an 89MiB incremental OTA.
+ // http://b/28135231.
+ size_t size = std::min(signed_len - so_far, 16 * MiB);
if (need_sha1) SHA1_Update(&sha1_ctx, addr + so_far, size);
if (need_sha256) SHA256_Update(&sha256_ctx, addr + so_far, size);