3 ms·
Wait, what if you have really really long comments? Or do they get stripped out beforehand?
by StavrosK 11y ago
Wait, what if you have really really long comments? Or do they get stripped out beforehand?
- phpnode 11y agoComments affect this heuristic, so yeah, commented code can be slower.
- hiou 11y agoSome libraries use annotations in comments. Therefore they cannot be stripped. Off the top of my head I know of some JavaScript testing libraries that do this.
- wolf550e 11y agoThis slide deck has a nice example of using a comment to fix a performance bug in a js implementation of the chacha20 cipher: http://mrale.ph/talks/goto2015/#/14 http://mrale.ph/talks/goto2015/#/14