Monthly Archives: May 2009

PHP serialization optimization

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 […]

Posted in PHP, Symfony | Tagged , , , , , | Leave a comment