title: Does the order of case in Switch statement can vary the performance?
body: <p>Let say I have a switch statement as below </p>
  
  <pre><code>switch(alphabet) {
  
      case "f":
          //do something
          break;
  
      case "c":
          //do something
          break;
  
      case "a":
          //do something
          break;
  
      case "e":
          //do something
          break;
  
  }
  </code></pre>
  
  <p>Now suppose I know that the frequency of having <code>Alphabet</code> e is highest followed by a, c and f respectively. So, I just restructured the <code>case</code> statement order and made them as follows:</p>
  
  <pre><code>switch(alphabet) {
  
      case "e":
          //do something
          break;
  
      case "a":
          //do something
          break;
  
      case "c":
          //do something
          break;
  
      case "f":
          //do something
          break;
  }
  </code></pre>
  
  <p>Will the second <code>switch</code> statement be faster than the first <code>switch</code> statement? If yes and if in my program I need to call this <code>switch</code> statement say many times, will that be a substantial improvement? Or if not in any how can I use my frequency knowledge to improve the performance?</p>