Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I have decided to list the most informative answers as this question is getting a little crowded. </p> <p><a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/8896521#8896521">DenverCoder8</a>'s bench marking clearly deserves some recognition as well as the compiled versions of the loops by <a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/1784000#1784000">Lucas</a>. <a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/8857037#8857037">Tim Gee</a> has shown the differences between pre &amp; post increment while <a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/8838920#8838920">User377178</a> has highlighted some of the pros and cons of &lt; and !=. <a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/8888046#8888046">Tenacious Techhunter</a> has written about loop optimizations in general and is worth a mention. </p> <p>There you have my top 5 answers. </p> <ol> <li><a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/8896521#8896521">DenverCoder8</a></li> <li><a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/1784000#1784000">Lucas</a></li> <li><a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/8857037#8857037">Tim Gee</a></li> <li><a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/8838920#8838920">User377178</a></li> <li><a href="https://stackoverflow.com/questions/1783822/format-of-for-loops/8888046#8888046">Tenacious Techhunter</a></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload