Closed
Bug 1852979
Opened 2 years ago
Closed 2 years ago
Avoid unecessary React updates in SourcesTreeItem
Categories
(DevTools :: Debugger, enhancement)
DevTools
Debugger
Tracking
(firefox119 fixed)
RESOLVED
FIXED
119 Branch
| Tracking | Status | |
|---|---|---|
| firefox119 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The following arrow function passed as component property will cause react updates on any state change:
https://searchfox.org/mozilla-central/rev/1cae9ca7cc7d17cfc92088dfc68e5ff391128caa/devtools/client/debugger/src/components/PrimaryPanes/SourcesTreeItem.js#242-250
| Assignee | ||
Comment 1•2 years ago
|
||
This property wasn't used and forced react updates as the arrow function
will cause the property to change on any state change.
Updated•2 years ago
|
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ed783efaebef
[devtools] Avoid unecessary React updates in SourcesTreeItem r=bomsy
Comment 3•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox119:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Comment 4•2 years ago
|
||
== Change summary for alert #39623 (as of Wed, 20 Sep 2023 21:33:56 GMT) ==
Improvements:
| Ratio | Test | Platform | Options | Absolute values (old vs new) |
|---|---|---|---|---|
| 73% | damp custom.jsdebugger.adding-sources.DAMP | linux1804-64-shippable-qr | e10s fission stylo webrender-sw | 1,624.99 -> 444.26 |
| 73% | damp custom.jsdebugger.adding-sources.DAMP | linux1804-64-shippable-qr | e10s fission stylo webrender | 1,642.65 -> 450.37 |
| 64% | damp custom.jsdebugger.adding-sources.DAMP | windows10-64-shippable-qr | e10s fission stylo webrender-sw | 1,170.71 -> 419.93 |
| 64% | damp custom.jsdebugger.adding-sources.DAMP | windows10-64-shippable-qr | e10s fission stylo webrender | 1,175.14 -> 422.12 |
| 33% | damp custom.jsdebugger.stepOver.DAMP | linux1804-64-shippable-qr | e10s fission stylo webrender | 433.14 -> 290.93 |
| ... | ... | ... | ... | ... |
| 2% | damp cold.jsdebugger.open.DAMP | windows10-64-shippable-qr | e10s fission stylo webrender-sw | 477.95 -> 467.87 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=39623
You need to log in
before you can comment on or make changes to this bug.
Description
•