See this profile: https://perfht.ml/2v6ntHb The nsTArray there needs to have some preallocated space.
Attachment #8891404 - Flags: review?(kyle) → review+
Attachment #8891426 - Flags: review?(kyle) → review+
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/485ceaeda922 Part 1: Use a preallocated buffer of 100 elements to try to avoid memory allocations in HTMLFormControlsCollection::GetSortedControls(); r=qdot https://hg.mozilla.org/integration/mozilla-inbound/rev/1ba4cfc4fa62 Part 2: Rewrite HTMLFormControlsCollection::GetSortedControls() to use RefPtr instead of raw pointers; r=qdot
You need to log in before you can comment on or make changes to this bug.