pickle alternative

simonwittber at gmail.com simonwittber at gmail.com
Wed Jun 1 04:40:22 EDT 2005


Andrew Dalke wrote:
> This is with Python 2.3; the stock one provided by Apple
> for my Mac.

Ahh that is the difference. I'm running Python 2.4. I've checked my
benchmarks on a friends machine, also in Python 2.4, and received the
same results as my machine.

> I expected the numbers to be like this because the marshal
> code is used to make and read the .pyc files and is supposed
> to be pretty fast.

It would appear that the new version 1 format introduced in Python 2.4
is much slower than version 0, when using the dumps function.

Thanks for your feedback Andrew!

Sw.




More information about the Python-list mailing list