Closed Bug 1385533 Opened 3 years ago Closed 3 years ago
Consider reserving space for one pointer in m
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.
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 firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/559f7f92c891 Reserve space for one pointer in the mMutationObservers array on node slots; r=smaug
You need to log in before you can comment on or make changes to this bug.