class="language-c++ highlighter-rouge"><span class="n">Map</span></code> when you do not require access to elements in sorted order.</p>
  </li>
  <li>
    <p><strong>Save expensive call result and re-use:</strong> If you are calling an
expensive function and using its result multiple times, save that result
in a variable rather than having to call the function multiple times. This optimization is especially valuable inside a loop body.</p>
  </li>
</ul>

<div class="language-c++ bad col-sm-6 highlighter-ro