I recently had to use the serialize() function to store objects in Memcache.
However, I realized that a lot of these objects (Propel objects precisely) were unnecessarily huge when stored: they had a lot of properties with quite long names having their default class value.
That’s when I realized I could use the __sleep() function to store [...]
Tag Archives: propel
PHP serialization optimization
Posted in PHP, Symfony Also tagged memcached, performance, PHP, serialization, Symfony Leave a comment