Re: PHP programming strategy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I actually benchmarked that once.  I had a reasonably large PHP file that was,
> in fact, over 50% docblocks.  That's not even counting inline comments.  While
> trying to find things to optimize, removing about 800 lines worth of comments
> (all of the docblocks) did, in fact, produce a noticeable performance
> difference.  It was only barely noticeable, but it just barely registered as
> more than random sampling jitter.  I actually concluded that if cutting the
> file *in half* was only just barely noticeable, then it really wasn't worth the
> effort.

Yeah but what happens if you run the script through the tokenizer and
strip ALL comments, unnecessary whitespace, newline characters, etc.
out?

> Larry Garfield
> larry@xxxxxxxxxxxxxxxx
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux