richarddsmith Posted September 11, 2008 Share Posted September 11, 2008 Does the addition of comments (liberally) throughout the PHP code increase its' system memory usage? I'm thinking that since it is interpreted (not compiled), the comments must be loaded in memory with the code, and thus increase the script's memory footprint. Is this correct? Rick Smith Link to comment https://forums.phpfreaks.com/topic/123846-code-comments-and-memory-usage/ Share on other sites More sharing options...
ohdang888 Posted September 11, 2008 Share Posted September 11, 2008 My guess: Unless you're running that sricpt literally billions of times a day, which it won't, then it won't be a problem. My suggestion: Use comments, a lot. They're help you a lot later when something messes up Link to comment https://forums.phpfreaks.com/topic/123846-code-comments-and-memory-usage/#findComment-639433 Share on other sites More sharing options...
DarkWater Posted September 12, 2008 Share Posted September 12, 2008 One line of characters that aren't even evaluated won't make a measurable difference. Use them as much as you can, honestly. Link to comment https://forums.phpfreaks.com/topic/123846-code-comments-and-memory-usage/#findComment-639458 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.