[PHP-DOC] Re: [PHP-DEV] new manual chapter suggestion From: Hojtsy Gabor (goba <email protected>)
Date: 07/30/01

> > - 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