Re: new manual chapter suggestion
| From: | Hojtsy Gabor | Date: | Mon, 30 Jul 2001 12:46:00 +0000 |
| Subject: | Re: new manual chapter suggestion | ||
| References: | 1 2 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-61542@lists.php.net to get a copy of this message | ||
> > - use echo "aaa" , "bbb", "ccc" instead of echo
> > "aaa" . "bbb" . "ccc"
> > because with the later you use more memory [Jim]
> > - echo is a little bit faster then print [Rasmus]
> > This would make a new chapter, with some nifty tips
> > about how you can improve the performance of your
> > programs.
>
> I see some sources, where beginners used twenty str_replace's instead of
one
> preg_replace, because somebody said to them str_replace is faster then
> preg_replace...
OK, you intentionally left out mysql_unbuffered_query() from
the list. What about some general collection of "not that
assembler type" performance tips, like:
- when to use unbuffered queries
- when to use str functions instead of regs
- when to use built in functions and external programs
- performance issues of abstraction layers, etc.
I am thinking of some detailed explanations, and not
just stating "do not do this, but do that", as every
solution is better in some respect.
Goba