To cache or not to cache $(this) in jQuery
<p>Does creating and reusing a reference increase performance appreciably when the selector is <code>$(this)</code>?</p>

<p>I create references for my jQuery selectors when I use the same selector multiple times in the same scope.  The following is more efficient </p>

<pre><code>    var jSel = $('div.some_class input.some_other_class');
    some_function1(jSel);
    some_function2(jSel);
</code></pre>

<p>than this</p>

<pre><code>    some_function1($('div.some_class input.some_other_class'));
    some_function2($('div.some_class input.some_other_class'));
</code></pre>

<p>But what if the selector is simply <code>$(this)</code> where <code>this</code> is a dom element inside a jQuery method.  Should I bother to create a reference to <code>$(this)</code> and reuse the reference or can I create multiple <code>$(this)</code> selectors and expect similar performance?</p>

<p>Is the following </p>

<pre><code>    var jSel = $(this);
    some_function1(jSel);
    some_function2(jSel);
</code></pre>

<p>significantly faster than the following?</p>

<pre><code>    some_function1($(this));
    some_function2($(this));
</code></pre>
