title: Should I use const for local variables for better code optimization?
body: <p>I often use <code>const</code> for local variables that are not being modified, like this:</p>
  
  <pre><code>const float height = person.getHeight();
  </code></pre>
  
  <p>I think it can make the compiled code potentially faster, allowing the compiler to do some more optimization. Or am I wrong, and compilers can figure out by themselves that the local variable is never modified?</p>