Changeset: 5757032a1a68 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5757032a1a68
Modified Files:
        sql/test/testdb/Tests/testdb-dump.SQL.py
Branch: default
Log Message:

Significantly speed up test.
It was Python that was the bottleneck dealing with the large output of
the dump program.  The solution is to let dump directly write to the
output file instead of by way of a very large Python string.


diffs (13 lines):

diff --git a/sql/test/testdb/Tests/testdb-dump.SQL.py 
b/sql/test/testdb/Tests/testdb-dump.SQL.py
--- a/sql/test/testdb/Tests/testdb-dump.SQL.py
+++ b/sql/test/testdb/Tests/testdb-dump.SQL.py
@@ -4,7 +4,7 @@ try:
 except ImportError:
     import process
 
-p = process.client('sqldump', stdout = process.PIPE, stderr = process.PIPE)
+sys.stdout.flush()              # just to be sure
+p = process.client('sqldump', stderr = process.PIPE)
 out, err = p.communicate()
-sys.stdout.write(out)
 sys.stderr.write(err)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to