Re: pickle alternative




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.

.



Relevant Pages

  • Re: Palindrome
    ... Andrew Dalke wrote: ... > Ulrich Schramme: ... > A slightly easier to understand and slower version is ... software developer by profession but quite new to Python. ...
    (comp.lang.python)
  • Re: For review: PEP 343: Anonymous Block Redux and Generator Enhancements
    ... Andrew Dalke wrote: ... Nothing in Python ends at the end of the current block. ... know, PEP343 has nothing to do with order of deletion, which is still ... But that's what this PEP is all ...
    (comp.lang.python)
  • Re: Unexpected Python Behavior
    ... Andrew Dalke wrote: ... >> Sorry to pitch in late, and forgive me if this has already been discussed ... probably a sign that I've grown into a long-term relationship with python: ...
    (comp.lang.python)
  • Performance boosts (was: New to Python: Features)
    ... Andrew Dalke wrote: ... There are Python to C converters which at best ... >give about a 5% speed boost, so the answer to your original ...
    (comp.lang.python)
  • Re: Disk thrashing, Please HELP!
    ... Restarting syslogd did not cause the ... > thrashing to resume. ... I'm not sure what's starting python or causing it to ... The second column is the pid of the process that's running python. ...
    (RedHat)