Re: Re: [PHP3] PHP Speed Optimization

From: Date: Mon, 24 Apr 2000 15:10:20 +0000
Subject: Re: Re: [PHP3] PHP Speed Optimization
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-18151@lists.php.net to get a copy of this message
| 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

« previous php.dev (#18151) next »