Stop using Promise.jsm from DevTools
Categories
(DevTools :: General, task, P2)
Tracking
(firefox57 wontfix, firefox95 fixed)
People
(Reporter: ochameau, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Reporter | ||
Comment 4•7 years ago
|
||
Reporter | ||
Comment 5•7 years ago
|
||
Reporter | ||
Comment 6•7 years ago
|
||
Reporter | ||
Comment 7•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
Reporter | ||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 12•3 years ago
|
||
Devtools appears to be the last code consumer of Promise.jsm
for Firefox code (there's other users for tests, but we can move it to test-only once devtools uses are removed).
Is there a way we could move this forward? I think I looked at it a little while ago and came to the conclusion it'd need someone a bit more familiar with devtools code, so I'm not sure it would be suitable as mentored bugs, unless they were well described.
Assignee | ||
Comment 13•3 years ago
|
||
I don't think there's a lot consumers left (https://searchfox.org/mozilla-central/search?q=require%28%22promise%22%29&path=&case=false®exp=false), but last time I tried to migrate all those at once TRY wasn't happy with it (I guess the timing is slightly different with regular DOM Promises).
I'll try to file independent bugs for each of those files so we can at least handle trivial ones.
Are we blocking any work here Mark?
Comment 14•3 years ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #13)
I don't think there's a lot consumers left (https://searchfox.org/mozilla-central/search?q=require%28%22promise%22%29&path=&case=false®exp=false), but last time I tried to migrate all those at once TRY wasn't happy with it (I guess the timing is slightly different with regular DOM Promises).
I'll try to file independent bugs for each of those files so we can at least handle trivial ones.Are we blocking any work here Mark?
I think the only work would be the removal of Promise.jsm/Promise-backend.jsm (I thought there was some async shutdown handling as well, but looks like I was wrong). Given there's so few cases left, it would be nice to see if we can drive it through and complete the clean-up rather than have it just sit there for ages. Quite happy for that to be scheduled in next year or something but would be nice to have a plan :)
Assignee | ||
Comment 15•3 years ago
|
||
Depends on D127929
Assignee | ||
Comment 16•3 years ago
|
||
Stealing the bug from Alex :)
Comment 17•3 years ago
|
||
Comment 19•3 years ago
|
||
Comment 20•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 21•3 years ago
|
||
Thank you for finishing this Nicolas.
Comment 22•3 years ago
|
||
== Change summary for alert #31960 (as of Tue, 19 Oct 2021 09:18:25 GMT) ==
Improvements:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
6% | fandom dcf | linux1804-64-shippable-qr | fission warm webrender | 395.62 -> 370.21 |
3% | fandom SpeedIndex | linux1804-64-shippable-qr | fission warm webrender | 376.85 -> 366.25 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=31960
Updated•3 years ago
|
Comment 23•3 years ago
|
||
(In reply to Alexandru Ionescu (needinfo me) [:alexandrui] from comment #22)
== Change summary for alert #31960 (as of Tue, 19 Oct 2021 09:18:25 GMT) ==
Improvements:
Ratio Test Platform Options Absolute values (old vs new) 6% fandom dcf linux1804-64-shippable-qr fission warm webrender 395.62 -> 370.21 3% fandom SpeedIndex linux1804-64-shippable-qr fission warm webrender 376.85 -> 366.25 For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=31960
The modified files from this patch should not be loaded in this test, so it's unlikely that this Bug triggered this alert. Looking at the retriggers, the push for this Bug shows no improvement compared to the first changeset from the retriggers (it's even slightly slower)
Alexandru: Can you check if this is really the right bug for this alert? Given it's an improvement I don't know if we want to spent too much time finding the actual Bug responsible for this, but the current association might be wrong.
Comment 24•3 years ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #23)
Alexandru: Can you check if this is really the right bug for this alert? Given it's an improvement I don't know if we want to spent too much time finding the actual Bug responsible for this, but the current association might be wrong.
Looks like bug 1733958
Updated•3 years ago
|
Description
•