0

Will adding serious amounts of comments slow down the program? I mean like a novel length like the types of: war and peace.

18th Sep 2015, 5:07 PM
Henrik Karlberg
Henrik Karlberg - avatar
3 Réponses
+ 6
From StackOverflow: 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.
26th May 2016, 1:10 PM
James Flanders
0
no, comment will never slow down compilation
11th Jun 2016, 6:20 PM
VARUN KUMAR
VARUN KUMAR - avatar
0
first
30th Aug 2017, 7:29 PM
Charlie Wright
Charlie Wright - avatar