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

Kristján Valur Jónsson kristjan at ccpgames.com
Wed Jan 29 04:02:58 CET 2014


How often I hear this argument :)
For many people, serialized data is not persisted.  But used e.g. for sending information over the wire, or between processes.
Marshal is very good for that.  Additionally, it doesn't have any side effects since it just stores primitive types and is thus "safe".
EVE Online uses its own extended version of the marshal system, and has for years, because it is fast and it can be
tuned to an application domain by adding custom opcodes.

> -----Original Message-----
> From: Python-Dev [mailto:python-dev-
> bounces+kristjan=ccpgames.com at python.org] On Behalf Of Barry Warsaw
> Sent: Tuesday, January 28, 2014 17:23
> To: python-dev at python.org
> Subject: Re: [Python-Dev] Python 3.4, marshal dumps slower (version 3
> protocol)


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




More information about the Python-Dev mailing list