Re: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-06 Thread Stanislav Malyshev
Yes, APC is able to memcpy arrays directly. I wonder how it deals with internal hash pointers - they can't be valid for anything except current run... Or you mean in does memcmp to values? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP Internals -

Re: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-06 Thread Rasmus Lerdorf
Stanislav Malyshev wrote: >> 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. > > Wouldn't array require serializing too? Or APC is able to store arrays > in u

Re: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-06 Thread Lukas Kahwe Smith
Stanislav Malyshev wrote: 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. Wouldn't array require serializing too? Or APC is able to store arrays in unserialize

Re: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-05 Thread Stanislav Malyshev
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. Wouldn't array require serializing too? Or APC is able to store arrays in unserialized form? Anyway you could us

RE: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-05 Thread Dmitry Stogov
> -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

Re: [PHP-DEV] RE: using arrays instead of stdClass

2007-06-05 Thread Lukas Kahwe Smith
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