Liquid Fire Posted November 20, 2007 Share Posted November 20, 2007 just wondering, do comments have any effect on speed of the script? I mean i don't think i use a ton on in code comments but i do keep track of version of classes and function with php doc and just wondering, i imagine it should have almost none. Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted November 20, 2007 Share Posted November 20, 2007 I think the PHP parser will ignore the comments so it will not be executed. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 20, 2007 Share Posted November 20, 2007 compiling with comments is pretty much the same in any language the first step generally involves find all the comment blocks and removing them, yes this is a process, but the benefits of them far out weigh the speed loss (which is negligible). Moral of the story use them. 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.