note 92822 deleted from function.serialize by danbrown

From: Date: Tue, 11 Aug 2009 00:30:30 +0000
Subject: note 92822 deleted from function.serialize by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159299@lists.php.net to get a copy of this message
Note Submitter: lezso6 at hotmail dot com ---- Alessandro Segala, I've tried your recommendation for changing serializer functions to json in my caching class. I ran some benchmark and I experienced that json is slightly slower (~10%) in my case. I've serialized lots of classes, large arrays, strings, serialized variables in my scripts, and put them into gzcompressed files. Without compression, filesizes would have been up to 500kB. So if you want to serialize more complex things than single arrays you should use the serialize function instead of json.

« previous php.notes (#159299) next »