Made sure pickling use protocol 2 to make it faster and the files smaller (binary).
This commit is contained in:
parent
553bfbe1ae
commit
26f16acc9c
|
@ -160,7 +160,7 @@ class DatasetSaveFunction(Function):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if chooser.run() == gtk.RESPONSE_OK:
|
if chooser.run() == gtk.RESPONSE_OK:
|
||||||
cPickle.dump(data, open(chooser.get_filename(), "w"))
|
cPickle.dump(data, open(chooser.get_filename(), "w"), protocol=2)
|
||||||
logger.log("notice", "Saved data to %r." % chooser.get_filename())
|
logger.log("notice", "Saved data to %r." % chooser.get_filename())
|
||||||
finally:
|
finally:
|
||||||
chooser.destroy()
|
chooser.destroy()
|
||||||
|
|
Reference in New Issue