Yes, every comment you write will make the compilation slower, because the compiler needs to read more text. But: reading comments is very simple for the compiler, and it is quickly done, so you should not worry about it.
You can try it yourself. Create a program that generates simple source code with lots of comments.
int i = 0; ... i++; ...
Now you can experiment to make this (generated) comment very long, maybe even megabytes. Then measure the difference when compiling the code with small and large comments, and you will see that the speed is still acceptable.
Rolling illig
source share