Re: parent_ctor()

From: Date: Mon, 17 Jul 2000 15:32:56 +0000
Subject: Re: parent_ctor()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24780@lists.php.net to get a copy of this message
And why is that, generally speaking OO isn't slower than arrays or the likes, doing some simple testing with multi-dimensional arrays that were indexed like array[parentid][itemid][] contra objectparent containing arr[] of objectitem, found that the OO way took 0.2 secs less when it had to fill out around 100 or so parentids, that's a 25% speed increase done with a rewrite that took 3-4 hours...
If possible, can you send that code to me - I´ve done some testing too on a complete benchmark environment and if noticed a 60-100% performance decrease against array hash version! If a base my understanding of "significant performance difference" on what zeev said (10x times is signifant difference) then OO stuff is *not* significant slower than non-OO code.
While I do agree that the OO features in PHP are working, and rather nicely, there are also many shortcomings, that I see as a problem for developing big projects (+10.000 lines of code are imho big projects).
I would rather say it makes big projects impossible (at least to maintain) and as it appears on zend.com PHP4/zend targets big projects...
Destructors.
Perhaps that really is not small thing, zeev mentioned several times that there is no clean way to implement that... whatever, regards -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#24780) next »