mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 10:28:11 +08:00
Sets pickle protocol to highest
* package signing protocol is now set to highest. Tests show this to be about a 35% speed increase and there is increased probability of correctly pickling complex objects. * also upped the protocol on the result database picklefield.
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ class PickleSerializer(object):
|
||||
|
||||
@staticmethod
|
||||
def dumps(obj):
|
||||
return pickle.dumps(obj)
|
||||
return pickle.dumps(obj, protocol=pickle.HIGHEST_PROTOCOL)
|
||||
|
||||
@staticmethod
|
||||
def loads(data):
|
||||
|
||||
Reference in New Issue
Block a user