export command is slower than checkout
Bug #196607 reported by
QbProg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
2 improvements for the export command:
I actually tryed it with "dir" output , not with compressed files.
1 - Progress status , it would be usefoul for large repositories.
2 - Make it faster . Even checkout is faster , from my POV should be at least as fast as checkout. I'm using it via local network.
I'm using Windows version 1.2.
Thank you
So putting status aside for a second, I have some thoughts on speed. Basically the problem is we're doing size(tree) lookups. I propose that we walk the tree gathering file versions we want to export (for exporting a working tree this suggests using CURRENT to me). iter_changes is probably the right interface to use. Then we can emit all the directories to the exporter at once; after that we can walk the files to export via tree.iter_ files_bytes( ).