Re: Re: PHP 5.1 roadmap
| From: | Sascha Schumann | Date: | Sun, 24 Oct 2004 11:10:20 +0000 |
| Subject: | Re: Re: PHP 5.1 roadmap | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13488@lists.php.net to get a copy of this message | ||
> 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