W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: QSA, the problem with ":scope", and naming

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 19 Oct 2011 10:43:45 -0400
Message-ID: <4E9EE221.3030305@mit.edu>
To: Alex Russell <slightlyoff@google.com>
CC: public-webapps@w3.org
On 10/19/11 4:22 AM, Alex Russell wrote:
> Yehuda is representing jQuery. I'll take his opinion as the global
> view unless he choses to say he's representing a personal opinion.

Global jQuery view, yes?  I stand by a slightly statement that what is 
common and needs to be fast for Yehuda may not be common and needing to 
be fast in general.

In particular, lots of jQuery selector usage is not in fact 
performance-sensitive.  Some obviously is.  Again, I'd love to see data 
on the cases where performance matters, both when jQuery is involved and 
when it's not.

I should note that the larger and more complicated a web app the less 
likely it is to use jQuery from what I've seen....

I'm absolutely sure that simple selectors dominate complicated ones in 
all contexts, but again I'd really like to have data on what _sort_ of 
simple selectors really need optimizing.

> The jQuery team did look to see what selector are "hottest" against
> their engine

Yes.  See above.

-Boris
Received on Wednesday, 19 October 2011 14:44:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:48 GMT