[Phpug] Performance: Static versus Intance Methods
David Coallier
davidc at php.net
Fri Apr 11 16:45:25 IST 2008
On 11/04/2008, michal.slaby at epsi.pl <michal.slaby at epsi.pl> wrote:
> Quoting David Coallier <davidc at php.net>:
>
> > Actually I am sorry to be the party breaker, however, php 5_3 (which
> > is still CVS) is faster with ArrayObjects than normal arrays. This is
> > due to the opcode optimizations that have been done.
> >
> > The main point for SPL usage is definitely the maintenance and
> > standardization of the code. But that is an whole other issue. One way
> > to make this equally faster.
> >
>
> Thanks for your detailed outline. I am great fan of unifying stuff via SPL.
>
>
> > Also, when appending values to an array object, let's use
> > $obj->append($val); instead of $obj[] = $val ;-) That's the native
> > way.
> >
>
> Actually, I would love to see operator overloading in PHP.
>
Perhaps you should have a look at:
http://pecl.php.net/package/operator ;-)
>
> > Hmm, I hope this clears a bit of questions, I'll keep you posted on
> > the progress of the investigation.
> >
>
> Please do, David. You seem to be valuable source of information ;-)
>
Thanks a lot :)
D
More information about the Phpug
mailing list