VirusDoctor Posted December 14, 2007 Share Posted December 14, 2007 Hi guys, I have two quick questions to ask (this is really for the people that really know the answer to this, no assumptions or guesses please) Firstly, if a person has many comments or comment blocks in a script, does it slow the script down at all? Like are the comments seen by the server or are they merely ignored? Secondly, if one has a fairly big functions.php file included throughout a script and certain pages of the script only use a few of the functions in the functions.php file, is the whole file processed by php or does it only fetch the functions it needs for that page and ignore the rest? In short, does this slow a script down? Thanks in advance for the reply guys. Shaun Quote Link to comment Share on other sites More sharing options...
nafetski Posted December 14, 2007 Share Posted December 14, 2007 It's very unlikely you'll see a delay in PHP having to read through comments...tho yes, the entire file is read and parsed...even if it is not all executed (in the case of your functions) Quote Link to comment Share on other sites More sharing options...
VirusDoctor Posted December 14, 2007 Author Share Posted December 14, 2007 Thanks for the reply, so the conclusion is that comments dont slow things down much (it at all) and including a large functions.php file in a script many times probably will slow things down. Correct? Shaun Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.