compilation

Project without blank spaces will be compiled faster?


As far as I know all the compiler and the interpreter will ignore the blank spaces in my projects. So, if I suppose that I have a project composed by 2 thousand line, there are so much blank spaces. In this case, my project will be compiled more slowly than a project without them?


Solution

  • No. Ignoring whitespace is possibly the fastest operation there is in a compiler. If it tips the I/O required over into an additional disk read you might notice a tiny difference. It's not worth worrying about, and it certainly isn't worth defacing your source files for. A 2000 line project is nothing to a compiler.