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


-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to