WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
80041
Add a generic way to protect Nodes from getting destroyed during DOM mutations
https://bugs.webkit.org/show_bug.cgi?id=80041
Summary
Add a generic way to protect Nodes from getting destroyed during DOM mutations
Ojan Vafai
Reported
2012-03-01 12:32:43 PST
Add a generic way to protect Nodes from getting destroyed during DOM mutations
Attachments
Patch
(21.29 KB, patch)
2012-03-01 12:36 PST
,
Ojan Vafai
no flags
Details
Formatted Diff
Diff
another performance test
(1.20 KB, text/html)
2012-03-01 15:32 PST
,
Ojan Vafai
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ojan Vafai
Comment 1
2012-03-01 12:36:00 PST
Created
attachment 129732
[details]
Patch
Ojan Vafai
Comment 2
2012-03-01 15:32:39 PST
Created
attachment 129759
[details]
another performance test
Hajime Morrita
Comment 3
2012-03-01 17:16:30 PST
It looks we often know how many nodes are possibly deleted during the scope. In that case, we could pre-allocate the array statically using template. Even when we need some dynamic allocation, we could reserve such storage on the scope initialization.
Abhishek Arya
Comment 4
2012-03-02 11:09:26 PST
We have refptr protects in appendChild, insertBefore and replaceChild. do you want to fix those? check out
http://trac.webkit.org/changeset/106972
. Please do make sure to run the tests in those changeset with libgmalloc after your change.
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