Re: PHP5 Speed Issues
| From: | Richard Lynch | Date: | Mon, 31 Dec 2007 20:26:53 +0000 |
| Subject: | Re: PHP5 Speed Issues | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266438@lists.php.net to get a copy of this message | ||
On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote:
> Hi Fellows,
>
> I figured out, that PHP5 runs faster when I am not inherit classes,
> I hope I use the right word.
>
> I mean the class sub_class extends main_class notation.
>
> As well I figured out, that I in most cases should references in
> foreach loops. like
>
> foreach($array as $key => &$value) {
>
> }
>
> Lots of memory is saved by that.
>
> Now I would like to know, what other speed improvements might be
> possible. What about autoload of classes, will it improve speed
> when I throw the code out?
>
> Are there other things I should take care of.
>
> I would like to know as much as possible. Please go deep into your-
> self and tell me every little thing on how you improved your applica-
> tions for speed and memory optimisation, to make this thread the best
> compendium on performance and memory optimisation.
>
> Thank you very much, fellows and a merry merry christmas!
I never optimize code unless there's a problem with its performance...
Why one would tweak code endlessly to maximize performance when that's
not needed is beyond me...
But maybe I'm just a Luddite.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?