Closed Bug 1943364 Opened 1 month ago Closed 1 month ago

Avoid unecessary redux store state changes in the netmonitor

Categories

(DevTools :: Netmonitor, enhancement)

enhancement

Tracking

(firefox136 fixed)

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(2 files)

There is a handful of reducers in the netmonitor which are cloning the returned state object, regardless of the state being actually changed of not.
Given that the network monitor has many connected components, it will force to call mapStateToProps on all of them and trigger the selectors and the diffing algorithm of Redux on the props output.

We should do our best to only change the state when strictly necessary.
Let's try to do that for all the naive actions.

Assignee: nobody → poirot.alex
Attachment #9461334 - Attachment description: Bug 1943364 - [devtools] Avoid various unecessary state changes in the netmonitor → Bug 1943364 - [devtools] Avoid various unecessary state changes in the netmonitor.
Status: NEW → ASSIGNED
Blocks: 1943543
No longer depends on: 1943351
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/01a1d0f4b27f [devtools] Avoid various unecessary state changes in the netmonitor. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/9c65c50da756 [devtools] Prevent unecessary updates when the netmonitor gets hidden. r=devtools-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: