Re: Re: PHP 5.1 roadmap
| From: | Andi Gutmans | Date: | Wed, 27 Oct 2004 18:19:30 +0000 |
| Subject: | Re: Re: PHP 5.1 roadmap | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13574@lists.php.net to get a copy of this message | ||
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