WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED LATER
106291
[Meta][Shadow] Incremental distribution
https://bugs.webkit.org/show_bug.cgi?id=106291
Summary
[Meta][Shadow] Incremental distribution
Shinya Kawanaka
Reported
2013-01-07 20:00:06 PST
Currently when an element is added/removed to/from host element, whole distribution happens. However, in some cases, we can skip such distribution. This will significantly improve ShadowDOM performance. We assume that content does not have some kinds of select attribute (e.g. div:first-of-type, etc.) here. if this assumption does not hold, it's safer to cause whole distribution. When removing an element: we can just remove an element from distributed element. When adding an element: find the first InsertionPoint the element will be distributed to, and add to it. (You have to care about node order.)
Attachments
Add attachment
proposed patch, testcase, etc.
Dominic Cooney
Comment 1
2013-01-07 21:07:30 PST
We don’t know that this is a performance problem yet, and it will complicate the code. I would prefer to improve the quality of existing code first before embarking on this.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug