Re: 2x speedup of unserializer

From: Date: Sat, 10 Nov 2001 20:54:56 +0000
Subject: Re: 2x speedup of unserializer
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70024@lists.php.net to get a copy of this message
On Sat, Nov 10, 2001 at 05:55:26PM +0100, Sascha Schumann wrote: > There is a patch available which boosts the speed of the > unserializer significantly. > > http://pair1.php.net/~sas/unserializer-speedup > > A large percentage of the speedup was achieved by > eliminating the use of a hash for the reference > implementation. Credits go to Thies for noticing this. > > The other part aims at making this code more maintainable for > future extensions. > > To apply the patch, do this: > > cd php4/ext > patch -p0 -N < /path/to/patch > > Please let me know what results you are seeing. > > And don't forget to Cc me as I haven't been subscribed to the > PHP lists for some time. if it passes the "make test" - just commit to HEAD. we'll find the remaining problems then. and if we decide to rebranch from HEAD for 4.1 we can still back it out! great work sascha, tc PS: i'm going to quantify this stuff one of the next days!

« previous php.dev (#70024) next »