[try Beta version]
Not logged in

 
Code Comments

Jan 5, 2014 at 5:56pm
Does commenting excessively in code effect its execution speed?
Jan 5, 2014 at 6:39pm
The only thing comments could do in compiled languages like C++/C# is increase the compile time by very small amounts as it parses through all of the files (you would needs thousands and thousands of comments to actually notice this). The execution speed at runtime isn't effected.

If you are using something like HTML it is a slightly different story as all of that data still has to be transferred around networks, but otherwise don't worry about it.
Jan 5, 2014 at 7:03pm
Commenting excessively is clearly a bad idea though. It's going to make the code harder to read and understand - The opposite of what comments should be doing!
Jan 5, 2014 at 7:34pm
Comments don't get compiled into your program. The don't affect the speed of your program.
Topic archived. No new replies allowed.