Fix for a selector speed regression (calling a simple selector many times resulted...
authorJohn Resig <jeresig@gmail.com>
Tue, 21 Aug 2007 05:43:44 +0000 (05:43 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 21 Aug 2007 05:43:44 +0000 (05:43 +0000)
commitb6d920cf05fae3dcfe515166013ce39411ac5e16
tree8c7e1879e92f4b7de49a3ca8398b2f96de61730f
parent8c15e852a4614ba5a5100e1c6e8a833c39b4ca79
Fix for a selector speed regression (calling a simple selector many times resulted in a significant speed down). This has been fixed by breaking the RegExps out into the global scope. This required that a closure be implemented around the full jQuery script (which is now the case). Some simple changes were made in addition to the RegExp one, allowing for some greater flexibility on our part - and hopefully better compression.

Speed results:
http://dev.jquery.com/~john/ticket/1351/ vs.
http://dev.jquery.com/~john/ticket/1351/113.html vs.
http://dev.jquery.com/~john/ticket/1351/112.html
src/event/event.js
src/intro.js
src/jquery/jquery.js
src/outro.js
src/selector/selector.js