Loop micro-optimization
Raj Maharjan
Posted on June 18, 2020
Because:
- For loop uses one less variable
- Count down to 0 is usually faster because it's more efficient to compare to 0 than others.
💖 💪 🙅 🚩
Raj Maharjan
Posted on June 18, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.