~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 6118.2.1.

  • Committer: John Arbash Meinel
  • Date: 2011-09-01 11:30:25 UTC
  • mto: This revision was merged to the branch mainline in revision 6133.
  • Revision ID: john@arbash-meinel.com-20110901113025-9pmzuvyplsqvst80
Refactor the Remote get_parent_map loop, and change how we compute how much prefetch to do.

Instead of estimating the compressed size by using an estimated compression
ratio, use a zlib.compressobj and flush it periodically. We seem to always
get better compression from the bz2 stream than the zlib.compressobj (which
is expected). And it means that are estimate is rarely wildly off.

At the moment, it is mostly under-estimating for bzr.dev (and for gcc), but it
is doing a much closer estimate for gcc.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: