Commit Graph

5 Commits

Author SHA1 Message Date
Patrick Mezard
36f644e1b9 editor: use SimpleStringIO in apply_text()
The design is a little ugly as the data stored in _openfiles will be a
string or a SimpleStringIO depending on the file having been edited or
not but this is a simple way to avoid allocating large blocks of data.
This is also a bet the output stream passed to apply_text() is only
being written and never seeked or read.
2012-09-26 22:18:31 +02:00
Patrick Mezard
ceaf6f2206 editor: add close_file(), enforce file batons semantics
Supporting close_file() is a big step toward reducing memory consumption
as now know which files are still to be edited and which are done
already.
2012-09-24 23:12:01 +02:00
Dan Villiom Podlaski Christiansen
b4222c21dd svn verify: use a custom editor and get_revision()
Previously, we would fetch each file in the revision/changeset
individually. With this change, we fetch the entire revision in one
request, and use a custom editor to verify its contents. This is quite
a lot faster than the previous means when verifying over the internet.
By an order of magnitude or two, in fact. As data is transfered in a
single operation, verifying a revision from PyPy took 30 seconds
rather than 30 minutes, and saturated my 10Mbps connection.

Please note that the output ordering isn't stable between the two;
output will appear in reverse order when using the fast verifier.
2011-12-14 00:07:58 +01:00
Dan Villiom Podlaski Christiansen
f6072c477e show a total for verification progress 2012-05-13 15:36:45 +02:00
Dan Villiom Podlaski Christiansen
07fd57c9b3 move verify to a file of its own 2012-05-13 15:36:45 +02:00