Re: does //commenting reduce performance?

From: Date: Sun, 24 Nov 2002 09:41:39 +0000
Subject: Re: does //commenting reduce performance?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125775@lists.php.net to get a copy of this message
I have always had the opinion that the more comments you put into php scripts, the slower they will run because there is more data to be read... Can someone tell me if there is any truth in this or whether commenting has absolutely 'no' impact on the performance of a script?
The comments are ignored, except the characters that initiate the actual comment. //some comment $somevar="va"; "some comment" wouldn't even be looked at. PHP sees the //, and goes to the next line. I suppose on a large scale this could reduce performance, but the performance that is lost in standard applications is minuscule. One thing you might want to avoid is using comments inside loops. -- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/

« previous php.general (#125775) next »