~bzr-pqm/bzr/bzr.dev

  • Committer: John Arbash Meinel
  • Date: 2008-08-22 05:40:12 UTC
  • Revision ID: john@arbash-meinel.com-20080822054012-ikrwmq9nm2q4h6q8
(broken, but hopeful) Change the compact logic.
Instead of only paying attention to the total bytes read,
use the fact that we *know* some of that is already compressed well.
So instead, we just pay attention to the bytes that are added since
the last sync. This means we Z_SYNC_FLUSH much less often.
(After syncing, we end up with more room to add without syncing.)
This improves both the time to compress and the final compressed
size. Need to update tests with the new offsets.
Also, we seem to have found a case where using Z_SYNC_FLUSH
in the middle of a stream will actually generate *better*
compression than compressing the whole stream in one pass.
test_too_much_data_does_not_exceed_size triggers this.
It *can* be packed in more than 100 bytes less than the
amount given by a full compress.
Filename Latest Rev Last Changed Committer Comment Size
..
bzrlib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
contrib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
doc 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
man1 2425.1.1 17 years ago Robert Collins ``make docs`` now creates a man page at ``man1/bzr Diff
tools 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
.bzrignore 3641.3.30 16 years ago John Arbash Meinel Rename _parse_btree to _btree_serializer 947 bytes Diff Download File
.rsyncexclude 1185.33.36 18 years ago Martin Pool Exclude more files from dumb-rsync upload 203 bytes Diff Download File
BRANCH.TODO 3015.4.13 16 years ago Daniel Watkins Cleaned out BRANCH.TODO. 150 bytes Diff Download File
File bzr 3624.1.1 16 years ago John Arbash Meinel Bring in 1.6rc2, and update NEWS. Some things tha 5.2 KB Diff Download File
bzr.ico 1861.2.16 18 years ago Alexander Belchenko new official bzr.ico 7.2 KB Diff Download File
COPYING.txt 1861.2.9 18 years ago Alexander Belchenko rename gpl.txt => COPYING.txt 17.5 KB Diff Download File
File generate_docs.py 2911.6.1 17 years ago Blake Winton Change 'print >> f,'s to 'f.write('s. 2.9 KB Diff Download File
INSTALL 2696.2.4 17 years ago Aaron Bentley Fix typo 1.4 KB Diff Download File
Makefile 3619.3.1 16 years ago Andrew Bennetts Move the notes on writing tests out of HACKING int 8.5 KB Diff Download File
NEWS 3641.3.31 16 years ago John Arbash Meinel NEWS 267 KB Diff Download File
profile_imports.py 1996.3.36 18 years ago John Arbash Meinel [merge] bzr.dev 2070 5.4 KB Diff Download File
README 3286 16 years ago Canonical.com Patch Queue Manager Start 1.4 development 3.3 KB Diff Download File
File setup.py 3641.3.30 16 years ago John Arbash Meinel Rename _parse_btree to _btree_serializer 19.9 KB Diff Download File
TODO 2382.2.5 17 years ago Martin Pool Contents of TODO file moved into bug tracker 115 bytes Diff Download File