[Webkit-unassigned] [Bug 73853] Inserting nodes is slow due to Node::notifyNodeListsAttributeChanged (20%+)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 6 15:33:59 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=73853





--- Comment #15 from Ryosuke Niwa <rniwa at webkit.org>  2011-12-06 15:33:58 PST ---
(In reply to comment #14)
> (In reply to comment #10)
> > I have a hypothesis that we can just invalidate all caches whenever DOM mutation happens. In this world, each document will have a hashmap from node -> node list (probably excluding childnodes), and we'll remove all caches whenever a DOM mutation happens.
> > 
> > I've collected 191220 samples while browsing websites like Gmail, Google+, Twitter, Facebook, etc...
> > 
> > total:  191220
> > hits: 185772 (97.151%)
> > misses: 3559 (1.861%)
> > hits that will be missed under this approach: 1889 (0.988%)
> 
> Does this exclude childNodes nodelists?

Yes. ChildNodeList::item overrides DynamicNodeList's item.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list