How blank lines in codes can affect the performance of your code
- Pranshu Aggarwal
- Nov 23, 2020
- 1 min read
This is not a problem we encounter daily but if you are building big projects then you might wanna consider adding extra blank lines to differentiate some part of the code from other. If that is you then you must read this post.
While creating complex projects like games, you have long codes which are already affecting the performance. But adding extra blank lines means that the computer has to again and again go to those lines for nothing. I personally experienced this when I was making a complex game. On close analysis I found 50 unnecessary blank lines. As soon as I removed them, the code was running at around twice the speed at which it was running earlier.
So next time when you are coding make sure to use less blank spaces to prevent any lags.
Happy coding!

Comments