pickle alternative

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Wed Jun 1 18:21:57 EDT 2005


simonwittber at gmail.com wrote:
> 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.

Not so for me. My benchmarks suggest no change between 2.3 and 2.4.

Reinhold



More information about the Python-list mailing list