Commit 32b1f213 authored by Tianjie Xu's avatar Tianjie Xu
Browse files

Modify the patch writer to use a list of compressors for each stream

Switch the internal member of the patch writer from a single compressor to a
list of compressors for ctrl|diff|extra streams. The change doesn't affect the
functionality of the existing bz2|brotli compressors; but later allow us to try
all the compressors and select the one with the best compression ratio.

With this new writer, callers will be able to produce the smallest patch without
calling bsdiff explictly multiple times.

Test: unit tests pass
Change-Id: I441ae6636e2299b2cfc9d14f50952c85585dbb4f
parent a31cf351
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment