title: Fastest way to loop through jQuery-returned DOM nodes
body: <p>I got a very interesting, yet absolutely logical result while chilling on jsperf.</p>
  
  <p><a href="http://jsperf.com/for-in-jquery-return-value-vs-jquery-each" rel="nofollow">http://jsperf.com/for-in-jquery-return-value-vs-jquery-each</a></p>
  
  <p><em>In a preparation environment, where <code>O</code> is jQuery return value of 200 DOM Nodes, and <code>a</code> is an empty array,</em></p>
  
  <pre><code>O.each(function() {
    a[a.length] = $(this).text();
  });
  </code></pre>
  
  <p>is a LOT slower than this "pure" snippet</p>
  
  <pre><code>for (i = 0; i &lt; O.length; i++) {
    a[a.length] = O[i].text();
  }
  </code></pre>
  
  <p>( For the difference, check the link above )</p>
  
  <p>Considering, that I was just having fun, there have to be even faster ways out there.
  What is the fastest way to loop through DOM elements using jQuery?</p>