[OS.File] Loading osfile.jsm is slow
Categories
(Toolkit Graveyard :: OS.File, enhancement)
Tracking
(Not tracked)
People
(Reporter: milindl, Unassigned)
References
Details
(Keywords: perf, Whiteboard: [fxperf:p2])
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Comment 1•7 years ago
|
||
Comment 3•7 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 4•5 years ago
|
||
This is what loading OS.File currently looks like: https://bit.ly/3dzjmqA
That's too many JS modules loaded at once. Some could be loaded lazy, and the rest should likely be combined (maybe at build time) into a single one.
Comment 5•5 years ago
|
||
https://perfht.ml/2X8RCUc is what loading the OS File worker looks like. This calls ImportScripts 5 times, and the ImportScripts implementation requires a round trip to the main thread before returning, so we get stuck because the main thread is janky during startup.
It's unfortunate that we get stuck 3 times to import require.js
(into different .jsm files).
Updated•5 years ago
|
Updated•5 years ago
|
Comment 6•3 years ago
|
||
Is this still important after the work being done in bug 1522925 and bug 986145?
Comment 7•3 years ago
|
||
I'll jump in here and say no - we're focusing on pulling OSFile.jsm out of the tree entirely, rather than optimizing it.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Description
•