Open Bug 1581068 Opened 5 years ago Updated 2 years ago

Stop loading modules twice

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

References

(Blocks 1 open bug)

Details

Network monitor is using two loaders at the same time, which leads to duplicate loads (about ~44 modules is loaded twice!)

See also great explanation from Julian:
https://bugzilla.mozilla.org/show_bug.cgi?id=1580255#c3

Avoiding duplicate loads should have positive impact on performance.

Honza

Priority: -- → P3
See Also: → 1581071

(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #0)

Avoiding duplicate loads should have positive impact on performance.

I just tested it on DAMP, and the impact is actually minimal https://treeherder.mozilla.org/perf.html#/comparesubtest?originalProject=mozilla-central&newProject=try&newRevision=05a3c26fcf40835397ecf55ef738500669d5f430&originalSignature=1760367&newSignature=1759151&framework=12&selectedTimeRange=172800

Maybe other platforms will show different results.
In general I expected very little in terms of DAMP impact, but a little more than what shows on my push :)
Loading the modules twice makes us use a bit more memory, but probably not enough to show up in DAMP.
It should have improved netmonitor coldopen in theory, but that might be very small.

So we should not expect a big perf improvement from this.
The main added value is to avoid weird bugs such as the issue discussed in Bug 1580255

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.