+ 2
Can comments slow down the compiler? And would the file size of my program increase if I use comments?
6 Answers
+ 12
no and no...
+ 3
Comments are normally stripped out during preprocessing, so the compiler itself never sees them at all.
They can (and normally do) slow compilation a little though--the preprocessor has to read through the entire comment to find its end (so subsequent code will be passed through to the compiler. Unless you include truly gargantuan comments (e.g., megabytes) the difference probably won't be very noticeable though.
+ 1
Thanks for the quick answer! :D
0
Thanks a lot! :D
0
hi
0
Comments are used to understand a program. It is meant for a user. Comments cannot slowdown your compiler because it doesn't see it at all when compiling