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
This commit is contained in:
John Resig 2007-08-21 05:43:44 +00:00
parent 8c15e852a4
commit b6d920cf05
5 changed files with 39 additions and 38 deletions

View file

@ -1 +1 @@
}
})();