Re: Sitegroup issue!

Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Wed, 8 Mar 2006 10:59:32 +0100
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
"Jukka Zitting" <[email protected]> wrote:

Hi,

> > > It would be possible if we defined the generic Zend getter and setter
> > > methods instead of copying property values back and forth from
> > > MgdSchema object properties to PHP object properties...

> > 4. Zend2 is not primary aim *right now* to provide another setter and getter
> > functionality.

> Whatever we can do in Zend1 is possible in Zend2 as well. Of course
> it's a bit different platform but the differences shouldn't be that
> big.

I am afraid the differences are too big to make all these now.
 
> > 6. Code like:
> >
> > if($obj->prop)
> >     echo $obj->prop;
> >
> > $obj->prop = $vale;
> > echo $obj->prop;
> > $obj->update();
> >
> > will trigger 4 additional resource lookups.
> 
> It's a hash table lookup versus a function call. The performance is
> hardly an issue here.

??
 
> > 7. Coming back to resource handler. Show me how many basic php extension uses
> > resources for external objects and how many of them uses more than 500 resource
> > handler per request. midgard-java extension is an exception but I do not think it's
> > widely used.

eh, I meant php-java extension
 
> Well, the MySQL extension uses a resource per connection and per
> result set. If Midgard were to be implemented as a pure PHP
> application on top of the PHP MySQL extension, then we'd essentially
> use at least one resource per each mgd_get or mgd_list call. There are
> quite a few PHP CMSs out there that do exactly that.

Yeah , mgd_list_xxx is the best example of how resource handler can brake your web *quickly*.
 
> > 8. As long as we really do not need this I can not spend much time to debug php leaks.
> > This is resource handler or generic array issue IMO.
> 
> Well, it's your call, so I'll not push this more, but I don't get
> where you see memory leaks with resources.

I think I need to do some valgrinding with php to make things clear :)

Piotras