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 [...]
Monthly Archives: May 2009
PHP serialization optimization
Posted in PHP, Symfony Tagged memcached, performance, PHP, propel, serialization, Symfony Leave a comment