Break metadata into smaller chunks (number of chunks=10) for faster delta generation.
Here are some data for comparison.
Without any metadata processing:
Run Time:
real 2m22.331s
user 1m56.040s
sys 0m6.170s
Payload Size:
756162 bytes
With metadata processing (number of chunks=4):
Run Time:
real 13m48.292s
user 13m10.120s
sys 0m6.920s
Payload Size:
749713 bytes
With metadata processing (number of chunks=10):
Run Time:
real 3m46.242s
user 3m17.880s
sys 0m6.640s
Payload Size:
748464 bytes
BUG=chromium-os:10669
TEST=Generated delta payloads between two images that do not have their
metadata preserved. Ran the delta generator with and without metadata
processing and also used different number of chunks for comparison
purposes.
Change-Id: If7244e8414155043480ea9b0aea0a61b4abf8fe0
Review URL: http://codereview.chromium.org/6011014
1 file changed