Re: [whatwg/dom] Declarative Shadow DOM (#831)

@smaug---- @mfreed7 : FYI, I've implemented streaming version (attach shadow root at the start tag) of this feature in WebKit and measured perf against non-streaming version (attach shadow root at the end tag like Blink currently does). The [result](https://bugs.webkit.org/show_bug.cgi?id=245817#c5) is that MutationObserver based polyfill to native non-streaming implementation is ~ 24% perf gain whereas MutationObserver based polyfill to native streaming implementation is ~29% perf gain.

There is definitely some overhead in non-streaming version compared to streaming version (~5%) but the difference seems rather small. Note that there is an end-user benefit of streaming version showing some content before the end tag of the outermost declarative shadow root is parsed, which isn't accounted in this measurement.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/831#issuecomment-1266594892
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/831/1266594892@github.com>

Received on Tuesday, 4 October 2022 08:35:53 UTC