+ 7

Do comments affect the performance?

10th Apr 2018, 9:16 PM
Aleksa Manić
Aleksa Manić - avatar
7 Respostas
+ 7
no the compiler throws them out in the executable
10th Apr 2018, 9:30 PM
Rational Agent
+ 2
What I was told(Basic) is comments consumes storage space but not in the bit file.
11th Apr 2018, 4:23 AM
Brian Trader
Brian Trader - avatar
+ 2
No, the complier throw them out so it's executable at once the code is run for output
13th Apr 2018, 8:33 PM
MAVEN
MAVEN - avatar
+ 1
Hi HB From a JavaScript perspective there is a small impact in that it increases the size of the file that is downloaded to the browser. There is not an impact to the execution. For large production code, developers will use Minifiers which will strip out comments and white space, so in practice this is not a problem.
11th Apr 2018, 8:33 AM
Mike Choy
Mike Choy - avatar
+ 1
100%
13th Apr 2018, 10:30 AM
Богдан Фокин
Богдан Фокин - avatar
+ 1
pl,looo
13th Apr 2018, 2:26 PM
abdelkader khannouss
abdelkader khannouss - avatar
+ 1
In ctt, no it doesn't
14th Apr 2018, 7:09 AM
Tianne Rolands