[SOLVED] Does having old commented code and a lot of whitespaces in code slow down performance?

Issue

Does having a lot of white space between chunks of code and empty lines in code slow down the performance of the application?

I have a tendency to space apart my code quite a bit, and I am wondering if it affects it negatively. Also, I have a lot of commented code that I commented out when I made changes, although I keep it around in case I ever have to go back to the old way. What are some other tips that could speed up performance?

Solution

No performance degradation at all. Comments are not parsed by the compiler, they are usually removed in the lexical analysis.

Answered By – sanjosep43

Answer Checked By – Timothy Miller (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *