RESOLVED WONTFIX 119026
Table DOM mutation methods (insertRow, insertCell) should lazy attach
https://bugs.webkit.org/show_bug.cgi?id=119026
Summary Table DOM mutation methods (insertRow, insertCell) should lazy attach
Ryosuke Niwa
Reported 2013-07-23 16:58:09 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/74ae9c918ea8b6b1a41871b826ec3f2a5737061c Doing thead.insertRow, table.insertRow or tr.insertCell would sync attach, this changes them to do lazyAttach just like doing appendChild() or insertBefore() would have. In a basic benchmark: table.offsetTop; var t = Date.now(); for (var i = 0; i < 200; i++) { var row = table.insertRow(0); for (var j = 0; j < 200; j++) row.insertCell(0).textContent = "foo bar"; } table.offsetTop; document.body.textContent = Date.now() - t; This cuts the time from 840ms down to 550ms for a 35% speed improvement.
Attachments
Ahmad Saleem
Comment 1 2022-09-30 18:03:20 PDT
lazyAttach is not something in Webkit. So marking this as "RESOLVED WONTFIX".
Note You need to log in before you can comment on or make changes to this bug.