Re: [PHP-DEV] Re: [PHP3] PHP Speed Optimization From: Faisal Nasim (faisal <email protected>)
Date: 04/24/00

| I read somewhere (on this list I think) that a lot of comments slows down
| the scripts but I haven't checked that myself.

It doesn't make any noticeable difference. Although a single
comment might be a bit faster (few nanoseconds) than the
multi-line comment (/* ... */) (comments checking is done in
the lexer).

|
| > Try not using functions.
| > You will get approximately 30+ % more speed.

This doesn't make much difference.... its an interpreted language,
and the only speed loss I can think about is the initialization of
another pool to store local variables.

I don't know for sure but I wonder if functions are saved in
the form of special tokens which don't need rechecking
for syntax once compiled... Zeev?

Thanks.

Faisal

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>