(In reply to Jens Stutte [:jstutte] from comment #20) > (In reply to Andrew McCreight [:mccr8] from comment #19) > > Ah, right. I did improve the performance of nsMaybeWeakPtrArray::RemoveWeakElement in bug 1944426, but we still have the underlying array operation. I have a patch stack up on bug 1986846 that might help a bit with the `nsMaybeWeakPtrArray` part. The most relevant piece here would probably be the removal search from tail (together with the stale entries logic), but maybe the less number of array copies is welcome, too. There are [release builds here](https://treeherder.mozilla.org/jobs?repo=try&revision=62dc7b4ce2c60bea24b537ea1e99728a91d865c0) (slightly earlier version, but the essence is the same).
Bug 1986619 Comment 38 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Jens Stutte [:jstutte] from comment #20) > (In reply to Andrew McCreight [:mccr8] from comment #19) > > Ah, right. I did improve the performance of nsMaybeWeakPtrArray::RemoveWeakElement in bug 1944426, but we still have the underlying array operation. I have a patch stack up on bug 1986846 that might help a bit with the `nsMaybeWeakPtrArray` part. The most relevant piece here would probably be the removal search from tail (together with the stale entries logic), but maybe the lesser number of array copies is welcome, too. There are [release builds here](https://treeherder.mozilla.org/jobs?repo=try&revision=62dc7b4ce2c60bea24b537ea1e99728a91d865c0) (slightly earlier version, but the essence is the same).