title: C++ Is there any way to make a program run faster?
body: <p>For example.. if I had.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
     int counter = 0;
     while (true)
     {
        cout &lt;&lt; counter &lt;&lt; endl;
        counter++
     }
  }
  </code></pre>
  
  <p>And say I was on a race to counting to 1 billion against other computers, is the rate at which this loop runs purely dependent on the computer processor speed? Or is there a limit on how fast my program can run, which could be changeable?</p>