You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calling innerHTML setter with text-only data is inefficient #25892
babylon's FPS counter appears to be updated with with innerHTML setter, which goes to a lot of extra work to end up attaching a new text node to the element. While it would be nice use the textContent setter instead, we should see if there's a way to optimize the current setter for short strings that don't contain <.
Activity
jdm commentedon Mar 19, 2020
Gecko has a fast path for strings under 100 characters with no markup: https://searchfox.org/mozilla-central/rev/6cd54550a27e2f6ca0755a25328f769e41e524f4/dom/base/FragmentOrElement.cpp#1915-1926
Add a fast path in Element::SetInnerHTML when the value is small and …
Auto merge of #26398 - Eijebong:fast-path-set-inner-html, r=<try>
Add a fast path in Element::SetInnerHTML when the value is small and …
Auto merge of #26398 - Eijebong:fast-path-set-inner-html, r=<try>
Add a fast path in Element::SetInnerHTML when the value is small and …
Auto merge of #26398 - Eijebong:fast-path-set-inner-html, r=jdm
Add a fast path in Element::SetInnerHTML when the value is small and …
Auto merge of #26398 - Eijebong:fast-path-set-inner-html, r=jdm