> -----Original Message-----
> From: Lukas Kahwe Smith [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 05, 2007 4:47 PM
> To: Dmitry Stogov
> Cc: 'PHP Developers Mailing List'
> Subject: Re: [PHP-DEV] RE: using arrays instead of stdClass
> 
> 
> Dmitry Stogov wrote:
> 
> > I don't like to increase complexity of ext/soap with additional 
> > options. It is already complex enough and simple object <-> array 
> > conversion doesn't provide additional abilities.
> 
> Well we have way more functions to "play" with arrays than we 
> have with 
> objects. Considering that we can have arbitrarily complex structures 
> returned from a soap request, its also not a trivial cast. 
> Even if its 
> just a cast, its will cost performance.
> 

I am not able to change API to use arrays instead of objects, because it
will break all existent applications.
Support for both will increase complexity and decries performance.

> > I don't understand how ext/soap related to APC.
> 
> Well the problem is that I am trying to cache soap replies in 
> APC. This 
> seems to be buggy but at the very least will require a 
> serialize/unserialize call, which again adds overhead.

I understood. In case of specific requests you can split soap reply into
simple elements and cache them. For general solution you have to use
serialize(). In any case unserialize() is much faster then real soap
request. And saving 405% instead of 400% is not so important.

Thanks. Dmitry. 

> 
> So obviously its not directly related, though I am sure that a lot of 
> people will try to cache their soap replies in some way or another.
> 
> regards,
> Lukas
> 
> 

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

Reply via email to