[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/filecache.py If we are to use slow pickles instead of byte-code, lets at least use the best protocol available. This cuts the time in half again. Still about six times slower than bytecode.
Hanno Schlichting
plone at hannosch.info
Sat Aug 23 04:39:31 EDT 2008
Log message for revision 90143:
If we are to use slow pickles instead of byte-code, lets at least use the best protocol available. This cuts the time in half again. Still about six times slower than bytecode.
Changed:
U z3c.pt/trunk/src/z3c/pt/filecache.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/filecache.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/filecache.py 2008-08-23 05:10:10 UTC (rev 90142)
+++ z3c.pt/trunk/src/z3c/pt/filecache.py 2008-08-23 08:39:30 UTC (rev 90143)
@@ -47,6 +47,6 @@
return
try:
- pickle.dump(self.registry, f)
+ pickle.dump(self.registry, f, protocol=2)
finally:
f.close()
More information about the Checkins
mailing list