W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2009

Re: Mutation events - slowness examples

From: Sean Hogan <shogun70@westnet.com.au>
Date: Fri, 26 Jun 2009 13:41:58 +1000
Message-ID: <4A444386.3020708@westnet.com.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: DOM public list <www-dom@w3.org>
Boris Zbarsky wrote:
> Sean Hogan wrote:
>> I don't know what would count as a performance sensitive web-app.
> Just as a data point, Gecko trunk had a bug earlier today where we 
> accidentally introduce a performance regression on removing table 
> rows.  The bug was easily caught because the regression made removing 
> a table row O(N) in number of rows and it immediately turned out that 
> all sorts of pages out there sort multi-thousand-row tables by 
> reordering the row nodes in the DOM.
Can you provide some URLs?
> Which means that they're doing thousands to tens of thousands of DOM 
> mutations.  And the time required needs to stay small (under 200ms, 
> ideally, since that's about whether the user starts perceiving the 
> operation as laggy).
But in this case they wouldn't be using Mutation Events.
> That's the sort of thing that we're worried about here, I think...
Sure. Every feature has its costs, and sometimes those costs mean you
don't use it.
I think the page author should make that decision for Mutation Events.
Received on Friday, 26 June 2009 03:42:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:55 UTC