[Webkit-unassigned] [Bug 87034] treeScope() is too slow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 19 21:12:42 PDT 2012


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





--- Comment #5 from Ryosuke Niwa <rniwa at webkit.org>  2012-06-19 21:12:41 PST ---
(In reply to comment #4)
> (In reply to comment #2)
> > - We could replace Node::m_document with Node::m_treeScope. But it could introduce
> >   some type checking which can regress speed from other side.
> 
> Two questions:
> 
> First, does this constrain us to having detached subtrees in the document tree scope? Will that be acceptable semantically for callers of treeScope?

Yes. document() should never be null for almost all nodes.

> Second, if detached subtrees are still in the document tree scope, don’t we just have to do a null test (or maybe equality test), not a type test?

I don't get what you mean here.

-- 
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