Bug 1843477 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The testcases in bug 1834003 spend a fair amount of time calling AddRef and Release on cycle collected objects. https://share.firefox.dev/3DaKDxI

The biggest offender is `nsTArray<EventTargetChainItem>::ClearAndRetainStorage`, which This function is called four times in total per call to `.click()`, probably with identical event target chains: For `click`, `DOMActivate`, `input` and `change`. It spends all its time calling virtual `Release` methods which spend their time in `nsCycleCollectingAutoRefCnt::decr`.
The testcases in bug 1834003 spend a fair amount of time calling AddRef and Release on cycle collected objects. https://share.firefox.dev/3DaKDxI

The biggest offender is `nsTArray<EventTargetChainItem>::ClearAndRetainStorage`. This function is called four times in total per call to `.click()`, probably with identical event target chains: For `click`, `DOMActivate`, `input` and `change`. It spends all its time calling virtual `Release` methods which spend their time in `nsCycleCollectingAutoRefCnt::decr`.

Back to Bug 1843477 Comment 0