2

Clear Exceptions reducer on each target/thread removal

 2 years ago
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1822293
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Closed Bug 1822293 Opened 1 month ago Closed 11 days ago

Clear Exceptions reducer on each target/thread removal

Categories

(DevTools :: Debugger, task)

Tracking

(firefox114 fixed)

RESOLVED FIXED

114 Branch

Tracking Status
firefox114 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

We don't really need to clone the whole exception map every time.
And we could use a real Map object.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

This help reduce memory footprint, especially in the MBT,
but will also help stop clearing all reducers on navigation.

  • avoid calling selectors when no source is selected.
  • ensure returning the exact same array instance from selectors
    when their content don't change, so that redux and react
    doesn't try to update for no reason.
  • Remove hasException and instead let the reducer prevent
    adding duplicated exception for same location.
Pushed by [email protected]:
https://hg.mozilla.org/integration/autoland/rev/9a79468808b2
[devtools] Use mutable data in exceptions reducer. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/3d8515c1c6fd
[devtools] Clear exceptions reducer on each thread removal. r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/4289319cf412
[devtools] Optimize exception selectors. r=devtools-reviewers,nchevobbe

== Change summary for alert #38113 (as of Sun, 16 Apr 2023 15:35:07 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
18% damp browser-toolbox.debugger-ready.DAMP macosx1015-64-shippable-qr e10s fission stylo webrender 1,029.57 -> 840.44
16% damp browser-toolbox.debugger-ready.DAMP windows10-64-shippable-qr e10s fission stylo webrender-sw 1,102.27 -> 926.05
16% damp browser-toolbox.debugger-ready.DAMP windows10-64-shippable-qr e10s fission stylo webrender 1,109.40 -> 933.11
16% damp browser-toolbox.debugger-ready.DAMP linux1804-64-shippable-qr e10s fission stylo webrender 1,385.30 -> 1,166.53
16% damp browser-toolbox.debugger-ready.DAMP macosx1015-64-shippable-qr e10s fission stylo webrender-sw 1,022.09 -> 862.89
16% damp browser-toolbox.debugger-ready.DAMP linux1804-64-shippable-qr e10s fission stylo webrender-sw 1,379.18 -> 1,165.29

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=38113

You need to log in before you can comment on or make changes to this bug.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK