Is “for(;;)” faster than “while (true)”? If not, why do people use it?

  1. It’s not faster.
  2. If you really care, compile with assembler output for your platform and look to see.
  3. It doesn’t matter. This never matters. Write your infinite loops however you like.

Leave a Comment