BundleReader, Containers, and file IO
Andrew Bennetts
andrew at canonical.com
Thu Oct 25 11:13:31 BST 2007
Robert Collins wrote:
[...]
> > and can simply keep pulling in e.g. 16K chunks (or more if we know
> > we're reading
> > a large body). The logic is simpler, and much faster. The benchmarks
> > are all
> > better than bzr.dev, and the “big_tree” ones are *twice* as fast!
>
> Packs use containers too; it would be nice to see the impact this has.
> Is there a branch I can pull, I'll happily run my performance tests to
> see how it pans out...
The branch with this is at
http://people.ubuntu.com/~andrew/bzr/chunked-body/streamable-containers
It adds a bzrlib.packs.iter_records_from_file function you can use instead of
ContainerReader(somefile).iter_records(). I'm curious to find out how it goes
for you!
-Andrew.
More information about the bazaar
mailing list