Re: Re: PHP 5.1 roadmap

From: Date: Wed, 27 Oct 2004 20:45:55 +0000
Subject: Re: Re: PHP 5.1 roadmap
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-13578@lists.php.net to get a copy of this message
I didn't try it (the boxen are shipping to USA), but I did look through it; it looks like it will do the job. Once I've settled in, I'll give it a go if no one beats me to it. It looks good to go in anyway IMO; thanks Sascha. --Wez On Wed, 27 Oct 2004 11:19:30 -0700, Andi Gutmans <andi@zend.com> wrote: > Wez, > > Did you try this patch? It'd be good if someone who had serialization > performance issues can verify this significantly improves it. > > Andi > > > > At 01:10 PM 10/24/2004 +0200, Sascha Schumann wrote: > > > The specific case I had was serializing an array containing a whole > > > bunch of arrays representing the data from tables in a database. I > > > don't recall how many rows there were, but the serialized data was > > > around 5 MB. This was on windows, and feels like realloc doing > > > over-time, so a fix could be something as simple as tweaking the > > > smart_str chunking code; start with a fair initial size and perhaps > > > having it double the size on each realloc. > > > > The default values you find inside php_smart_str.h are tuned > > for efficient usage of the engine's allocator. They are not > > tuned for huge real-world usage. > > > > The attached patch should change that for var.c. > > > > - Sascha > > > >

« previous php.internals (#13578) next »