diff options
author | sra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 23:47:01 +0000 |
---|---|---|
committer | sra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 23:47:01 +0000 |
commit | d576712f077da660d19a323c9c1efaad6caa26d0 (patch) | |
tree | dfa055757b91fd6c1dc1a81361afbbc92adb38aa /courgette/courgette.h | |
parent | d9b46d768e64c24beb0497902e47b2a9d4a54af7 (diff) | |
download | chromium_src-d576712f077da660d19a323c9c1efaad6caa26d0.zip chromium_src-d576712f077da660d19a323c9c1efaad6caa26d0.tar.gz chromium_src-d576712f077da660d19a323c9c1efaad6caa26d0.tar.bz2 |
Improvements to Courgette's version of bsdiff
* Store 'diff' bytes by run-length encoding zeros. This reduces the memory
needed to store the zeros by ~30MB for chrome.7z.
* Store the control tuple elements in separate streams. The 'extra_bytes'
counts are often zero so this brings all the zeros together.
The uncompressed patch file is much smaller due to the run-length encoded
zeros. It is slightly smaller (3-8%) after compression with lzma.
Review URL: http://codereview.chromium.org/115435
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16343 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/courgette.h')
-rw-r--r-- | courgette/courgette.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/courgette/courgette.h b/courgette/courgette.h index 0ddded5..7375c10 100644 --- a/courgette/courgette.h +++ b/courgette/courgette.h @@ -26,7 +26,7 @@ enum Status { C_BAD_ENSEMBLE_MAGIC = 5, // Ensemble patch has bad magic. C_BAD_ENSEMBLE_VERSION = 6, // Ensemble patch has wrong version. C_BAD_ENSEMBLE_HEADER = 7, // Ensemble patch has corrupt header. - C_BAD_ENSEMBLE_CRC = 8, // Ensemble patch has corrupt header. + C_BAD_ENSEMBLE_CRC = 8, // Ensemble patch has corrupt data. C_BAD_TRANSFORM = 12, // Transform mis-specified. C_BAD_BASE = 13, // Base for transform malformed. |