Re: PHP programming strategy

From: Date: Sun, 02 Aug 2009 04:01:11 +0000
Subject: Re: PHP programming strategy
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-296174@lists.php.net to get a copy of this message
> 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@garfieldtech.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#296174) next »