[Python-Dev] Python 3.4, marshal dumps slower (version 3 protocol)

Barry Warsaw barry at python.org
Tue Jan 28 10:23:01 CET 2014


On Jan 28, 2014, at 09:17 AM, tds333 at gmail.com wrote:

>yes I know the main usage is to generate pyc files. But marshal is also used
>for other stuff and is the fastest built in serialization method. For some
>use cases it makes sense to use it instead of pickle or others. And people
>use it not only to generate pyc files.

marshall is not guaranteed to be backward compatible between Python versions,
so it's generally not a good idea to use it for serialization.

-Barry


More information about the Python-Dev mailing list