Skip to content
Snippets Groups Projects
user avatar
kerz@chromium.org authored
Reduced total size of allocations from 520MB to 318MB.
The general technique is to allocate the correct size rather than grow into
the correct size and overshoot.

1. Find file sizes and allocate buffers of that size for the input files.

2. Pre-allocate a buffer for the collected inputs for the final diff.

3. Calculate the size for (2) during compression and include it in the patch
   header.

The courgette.exe command line tool now calls the same ApplyEnsemblePatch
entry point that is called by the installer.  This ensures measurements of
courgette.exe are a better reflection of the installer.

BUG=72459

Review URL: http://codereview.chromium.org/6546008

TBR=sra@chromium.org
Review URL: http://codereview.chromium.org/6602017

git-svn-id: svn://svn.chromium.org/chrome/branches/648/src@76289 0039d316-1c4b-4281-b951-d872f2087c98
4ce077ee
History
Name Last commit Last update