pickle alternative

Paul Rubin http
Thu Jun 2 05:50:01 CEST 2005

simonwittber at gmail.com writes:
> It appears to work faster than pickle, however, the decode process is
> much slower (5x) than the encode process. Has anyone got any tips on
> ways I might speed this up?

I think you should implement it as a C extension and/or write a PEP.
This has been an unfilled need in Python for a while (SF RFE 467384).

Note that using marshal is inappropriate, not only for security
reasons, but because marshal is explicitly NOT guaranteed to
interoperate across differing Python versions.  You cannot assume that
an object marshalled in Python 2.4 will unmarshal correctly in 2.5.

More information about the Python-list mailing list