faqts : Computers : Programming : Languages : PHP : kms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

48 of 52 people (92%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

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 06:54
Mårten Gustafsson, Ben Udall, Shelly Shaw,


From a mail to php-dev by Andi Gutmans [2021-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."