What is the cost of finding a node in JQuery?
<p>I always save the result of the <code>find()</code> in order to avoid multiple sub tree traversal if I need the value several times:</p>

<pre><code>var $a_bar = $('div.foo').find('a.bar');
$a_bar.removeClass(...);
// ... code here
$a_bar.bazz();
</code></pre>

<p>instead of </p>

<pre><code>$('div.foo').find('a.bar').removeClass(...);
// ... code here
$('div.foo').find('a.bar').bazz();
</code></pre>

<p>I am wondering if it is not a micro-optimization... So what is the cost/complexity of finding a node in <code>JQuery</code>?</p>
