|
|
|
|
|
by sepeth
3963 days ago
|
|
You should use highest protocol of pickle, here are the numbers in my machine: In [5]: %timeit pickle.dumps(a)
1 loops, best of 3: 724 ms per loop
In [6]: %timeit pickle.dumps(a, protocol=pickle.HIGHEST_PROTOCOL)
100 loops, best of 3: 12.4 ms per loop
|
|