W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: Parent Combinator / Parent pseudo-class

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 23 Jul 2008 10:43:22 -0700
Message-ID: <48876DBA.40508@mit.edu>
To: Brad Kemper <brkemper@comcast.net>
CC: www-style list <www-style@w3.org>

Brad Kemper wrote:
> In fact, I do have an example of that, and it does not seem slow at all 

"slow" is a relative concept.  Handling DOM mutations in this document 
is slower than if the '+' combinator were not used.  It's still fast 
compared to human reaction times.

Of course your page is two orders of magnitude smaller than typical 
"commercial" webpages, and about 4 orders of magnitude smaller than 
typical "big" webpages where algorithmic complexity issues _really_ 
start to kick in.

Seriously, users want arbitrarily sized HTML documents handled in a 
"non-laggy" way.  In practice that means that nothing should ever take 
longer than 200ms, and continuous updates need to happen every 20ms or 
more often.  If it takes you longer than 20ms to respond to arbitrary 
DOM changes for an arbitrary HTML document, you will be perceived as "slow".

-Boris
Received on Wednesday, 23 July 2008 17:44:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT