This way setting an input value for example won't incur an allocation here when a range gets created for the selection, and we won't be growing the slot by too much. We still have the static asserts in FragmentOrElement.cpp imposing a maximum size on our slots.
Created attachment 8891596 [details] [diff] [review] Reserve space for one pointer in the mMutationObservers array on node slots This helps avoid allocations for the first mutation observer (for example, Range) created by a caller.
Attachment #8891596 - Flags: review?(bugs)
(The macros in nsTObserverArray.h are copied from similar macros adjacent to them, just changing the array type used in them.)
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/559f7f92c891 Reserve space for one pointer in the mMutationObservers array on node slots; r=smaug
Status: NEW → RESOLVED
Last Resolved: a year ago
status-firefox56: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.