Open
Bug 1358054
Opened 6 years ago
Updated 3 months ago
[Performance] combine double updateRequest call while receive event in _onNetworkEventUpdate
Categories
(DevTools :: Netmonitor, enhancement, P3)
DevTools
Netmonitor
Tracking
(Not tracked)
NEW
People
(Reporter: gasolin, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [netmonitor-reserve])
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
Details |
in _onNetworkEventUpdate there are 3 cases that we called updateRequest twice. They are * _onSecurityInfo * _onResponseContent * _onEventTimings http://searchfox.org/mozilla-central/source/devtools/client/netmonitor/src/netmonitor-controller.js#607 onResponseContent is handled in Bug 1356957, we can combine the rest double updateRequest call while receive events
Reporter | ||
Updated•6 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
No longer blocks: netmonitor-phaseII
Reporter | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
React has implemented its batched update mechanism when seeing frequent props update in a short time. I suspect that influence of this patch would be minor. Fred, Beside fixing test failures, if you still think that it's worth to land this patch, could you verify how many times subscribe listener calls decrease after applying your patch? (Every subscribe listener calls imply one react components update) Add a console.log in index.js (launchpad) or index.html (toolbox) to see let count = 0; store.subscribe(() => { console.log(count++); });
Flags: needinfo?(gasolin)
Reporter | ||
Comment 3•6 years ago
|
||
Thanks for the suggestion. After apply the patch, it reduced state update from 105 -> 102 for 144 requests from bbc.com , so it might not worth to fix this at this time
Assignee: gasolin → nobody
Status: REOPENED → NEW
Flags: needinfo?(gasolin)
Priority: -- → P3
Updated•6 years ago
|
Comment hidden (mozreview-request) |
Reporter | ||
Comment 5•6 years ago
|
||
attach WIP patch in case someone want to pick it and fix the test
Blocks: devtools-performance
Updated•5 years ago
|
Product: Firefox → DevTools
Updated•4 years ago
|
No longer blocks: netmonitor-phaseII
Updated•6 months ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•