Re: Re: unserialize() bottle-neck

From: Date: Wed, 12 Jan 2005 18:22:12 +0000
Subject: Re: Re: unserialize() bottle-neck
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35472@lists.php.net to get a copy of this message
Justin Patrin wrote:
On Tue, 11 Jan 2005 20:18:48 -0500, Wez Furlong <wez@thebrainroom.com> wrote:
I found it much faster to spit out an array declaration and then use eval() to pull that data back in.
Or you could use var_dump() and an include. Along with a code cache, this would speed things up considerably.
OK, these things obviously only work for trusted data. But I guess we have the same situation for unserialize() so nevermind my comment :-) regards, Lukas

« previous php.pear.dev (#35472) next »