Hey, when you put comments in a PHP script will it make the script run slower?
I looked at the php homepage for some info on comments but didn't find what I was looking for.
Comments -- Laggin up your script?
Moderator: General Moderators
From PHP.FAQTs:
If a PHP script is loaded heavily with comments, does the page load more slowly by Apache (to parse out the comments)?
Jan 22nd, 2002 08:54
Mårten Gustafsson, Ben Udall, Shelly Shaw
From a mail to php-dev by Andi Gutmans [2001-01-13]:
"As it is a compile first, execute later interpreter it will in
practice not slow down your code. Of course if your script has only a
very small amount of flat code (no loops/function calls) and a huge
amount of comments (tens of KB) then it could theoretically make a
difference but in reality it doesn't."