Re: Parent Combinator / Parent pseudo-class

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 UTC