Slow performance of inline source maps
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox-esr68 unaffected, firefox74 wontfix, firefox75 wontfix, firefox76 wontfix, firefox77 verified)
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox74 | --- | wontfix |
firefox75 | --- | wontfix |
firefox76 | --- | wontfix |
firefox77 | --- | verified |
People
(Reporter: Harald, Assigned: loganfsmyth)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: regression)
Attachments
(3 files)
The local dev version of hubs (https://github.com/mozilla/hubs) uses inline source maps.
Firefox takes 40+ seconds to load them. https://perfht.ml/305hcsz
Chrome is instant.
The prod build, https://hubs.mozilla.com/, does not excibit the same issue.
There are also some non-readable source map errors which might be related, see attached logs.
Reporter | ||
Comment 1•5 years ago
|
||
Logan, could you help with root cause analysis?
Comment 2•5 years ago
|
||
So, it looks like the problem is we're spending a ton of time parsing the sources. I can also dig a bit more into this.
Assignee | ||
Comment 3•5 years ago
|
||
@Harald
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1607639 for the exceptions you posted, since those would be unrelated to performance issues.
Since Jason already started, Ill leave it to him to dig into the perf more.
Reporter | ||
Comment 4•5 years ago
|
||
20:08.78 INFO: Last good revision: 36535c33a0c0fcfe26409f2c4fccc134f092bd07
20:08.78 INFO: First bad revision: 78a3f864177fe193bb6ee4a14b81cbe84e25435c
20:08.78 INFO: Pushlog:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=36535c33a0c0fcfe26409f2c4fccc134f092bd07&tochange=78a3f864177fe193bb6ee4a14b81cbe84e25435c
Which makes it bug 1558111. Before the source map loaded in less than 5sec. Jason recommended that this low-level change might be better suited for Logan to analyze.
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
By loading whatwg-url like this, we replace the worker global URL property
(among others), which means that code that uses URL
and expects it to be the
version that is built into Firefox may not get what they expect.
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D69933
Assignee | ||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c810f015eef6
https://hg.mozilla.org/mozilla-central/rev/d06eff418943
Updated•5 years ago
|
Updated•5 years ago
|
Comment 9•5 years ago
•
|
||
Confirmed issue with 76.0 on macOS 10.15.3 comparing console errors up.
Fix verified with 77.0b4 on Windows 10, macOS 10.15.3, Ubuntu 20.
Description
•