swiftmailer/swiftmailer — pull request #167 by williambailey (2012-02-27 23:05:15+00:00)
Title: Smaller serialisation of messages.

Serialising messages results in a large serialised string with lots of duplicated data.

This is an initial attempt to reduce some of that information which should reduce spooler disk usage. I tried to to change too much and most of the changes involve moving shared data into class constants or static variables that get initialised once and ignored when the objects get serialised and unserialised.