[Webkit-unassigned] [Bug 247782] Very slow DOM rendering of large (plain text/json) URLs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 11 16:22:24 PST 2022


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

--- Comment #7 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to Vladimir Prelovac from comment #3)
> @zalan
> 
> One more observation I made while testing is that document.write() was about
> 25% faster than document.body.innerHTML=() for this use case. Any thoughts
> on this and what is in principle the fastest way to get (large) content into
> DOM?

That is not surprising given innerHTML setter would have to first construct a document fragment and then insert that document fragment whereas document.write will bypass that process and directly inserts content into the document.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221112/2d947448/attachment.htm>


More information about the webkit-unassigned mailing list