W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2009

Re: Mutation events

From: Stewart Brodie <stewart.brodie@antplc.com>
Date: Wed, 11 Mar 2009 14:26:31 +0000
To: <www-dom@w3.org>
Message-ID: <f47b62f1510624a7bb3336e81221178da92591b8@localhost>
Olli Pettay <Olli.Pettay@helsinki.fi> wrote:

> Hi all,
> 
> I tested mutation events a bit.
> 
>                              | Gecko trunk | WebKit trunk | Opera 10a
> DOMAttrModified             |      X      |      -       |     X
> DOMCharacterDataModified    |      X      |      X       |     X
> DOMNodeInserted             |      X      |      X       |     X
> DOMNodeInsertedIntoDocument |      -      |      X       |     X
> DOMNodeRemoved              |      X      |      X       |     X
> DOMNodeRemovedFromDocument  |      -      |      X       |     X
> DOMSubtreeModified          |      X      |      X       |     -
> 
> 
> Whenever mutation listeners are used, the relevant DOM operations slow
> down a lot in all browser engines. The slow down is up to 10-20x.

My implementation also does all of the events except SubtreeModified.  The
slowdown factor will depend on what mutations you are actually doing.  I
don't expect our implementation to slow down at all unless you are actually
listening for the events.


-- 
Stewart Brodie
Software Engineer
ANT Software Limited
Received on Wednesday, 11 March 2009 14:27:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:59 GMT