[development] Re: [drupal-devel] performance improvements - avoiding big unserialize()

Gerhard Killesreiter gerhard at killesreiter.de
Wed Nov 30 19:01:45 UTC 2005


Moshe Weitzman wrote:

> thanks for providing these benchmarks, richard.
>

Yep, very interesting!

>> It is interesting to note that the only way to benefit from
>> using APC is to store the array in a file and include it.
>> Not worth the security risk, IMHO.
>
>
> i don't understand this. you get no benefit by just storing the array 
> directly? for example, apc_store('conf', $conf);
>
>>
>> My conclusion is that using unserialize is quite OK and there
>> is no need or benefit to changing the way arrays are stored.
>>
>
> maybe so. the fact remains that we spend significant time during every 
> request unserializing these large arrays, and if we want to speed up 
> drupal, we have to concentrate in this area.


There are a lot of areas we can look into.

> you can verify this using xdebug profiler or zend studio. the profiler 
> does not lie.


I would not be so sure about the latter...
I got quite different results (on another topic) using both xdebug and 
the PEAR profiler.
I think that xdebug got it right, but I can't  be certain.

Cheers,
    Gerhard


More information about the development mailing list