Which is better in terms of performance? To test whether a boolean is true or set it all the times?
<p>For example in a very long loop:<br>
(<code>bool x;</code>)  </p>

<p>To test it always:</p>

<pre><code>if (!x) x = true;
</code></pre>

<p>or just set it to true all the time:</p>

<pre><code>x = true;
</code></pre>