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. Link to comment https://forums.phpfreaks.com/topic/78023-php-comments-and-speed-effect/ 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. Link to comment https://forums.phpfreaks.com/topic/78023-php-comments-and-speed-effect/#findComment-394894 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. Link to comment https://forums.phpfreaks.com/topic/78023-php-comments-and-speed-effect/#findComment-394897 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.