summaryrefslogtreecommitdiff
path: root/scripts/update_payload/payload.py
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-02-20 15:21:20 -0800
committerTianjie Xu <xunchang@google.com>2018-03-03 05:13:49 +0000
commitde1685fd76c0742df848985bf448388583e1299e (patch)
treedf47b54adb613dca7d68dda33472bfd7692ba709 /scripts/update_payload/payload.py
parent26d89772808907b3d4e6c47fa7d3d172942ca52b (diff)
Enable brotli_bsdiff in update package generation
Brotli_bsdiff uses brotli to compress the bsdiff patches; and almost always yields a smaller result than the old bsdiff with bz2. So there is little point to try both methods in update_engine. Example: walleye 4504078 -> 4585723 with bsdiff cache enabled. time size bz2 only: ~8min 494M brotli only: ~12min 455M bz2 & bro: ~16min 454M In this example, trying bz2 merely saves ~1M at the cost of 4 minutes generation time. So in this CL, we only use brotli_bsdiff if the operation is allowed; and later we can optionally implement a new mode in bsdiff to pick the compressor who generates the smallest patches. Bug: 34220646 Test: Generate and verify a walleye package Change-Id: Ideae1acea95ff204c2ba5b7637945307743f0a51
Diffstat (limited to 'scripts/update_payload/payload.py')
0 files changed, 0 insertions, 0 deletions