[issue2389] Array pickling exposes internal memory representation of elements
Alexandre Vassalotti
report at bugs.python.org
Tue Aug 12 07:45:13 CEST 2008
Alexandre Vassalotti <alexandre at peadrop.com> added the comment:
The slowdown depends of the array type. The patch makes array unpickling
a few orders of magnitude slower (i.e. between 4 and 15 times slower
depending of the array type). In general, pickling is about as fast as
with the binary representation (or faster!).
Although since most 64-bit compilers uses the LP64 model, I think we
could make a compromise and only pickle as a list arrays of long
integers. This would fix the problem without any visible speed penalties.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2389>
_______________________________________
More information about the Python-bugs-list
mailing list