Commit de1685fd authored by Tianjie Xu's avatar Tianjie Xu
Browse files

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
parent 26d89772
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment