title: Performance - What option do you prefer?
body: <p>In my little project I made two options how a switch could work like:</p>
  
  <pre><code>switch (_toler) {
      case '20': var kto='M'; break;      
      case '10': kto='k / K'; break;      
      case '5': kto='J'; break;       
      case '2': kto='G'; break;       
      case '1': kto='F'; break;
      case '0.5': kto='D'; break;
      case '0.25': kto='C'; break;
      case '0.1': kto='B'; break;     
      case '0': default: kto='/'; break;
  }
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>var wert=["20","10","5","2","1","0.5","0.25","0.1","0"];
  var kurz=["M","k / K","J","G","F","D","C","B","/"];
  for (i=0; i&lt;9; i++) {
      if (_toler==wert[i]) {kto=kurz[i]}
  }
  </code></pre>
  
  <p>Which one would you prefer? I do'nt know whats better, because the second option is less code.</p>