Closed Bug 1547302 Opened 6 years ago Closed 6 years ago

ES modules load very slowly

Categories

(Core :: IPC, defect)

68 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox66 --- affected
firefox67 --- affected
firefox68 --- affected

People

(Reporter: 709922234, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

  1. open https://xianqiao.wang/test/esm/public/es6-modules.html
  2. open web console
  3. view output

Expected results:

The output is a small number, result similar to https://xianqiao.wang/test/esm/public/webpack-modules.html

Reproduced the issue on all latest Firefox versions on Mac OS 10.14:

Nightly:
actual: 3619ms
expected: 84ms

Beta:
actual: 5400ms
expected: 1186ms

Release:
actual: 9832ms
expected: 1292ms

Moving this over to a component so developers can take a look at it. Thanks for the report!

Status: UNCONFIRMED → NEW
Component: Untriaged → JavaScript Engine
Ever confirmed: true
Product: Firefox → Core

Win 10 ARM64: https://perfht.ml/2ZQuIzP

Looking at the profile, the content process seems to spend most of its time waiting rather than processing anything.
However the parent process seems to be handling events quite late and not giving any information to the child process fast enough.

I have no idea which category this bug should be filed against, but it definitely does not look like we are waiting on JS completion.
Timea, any idea where this bug should go based on the profile?

Component: JavaScript Engine → Untriaged
Flags: needinfo?(timea.babos)
Product: Core → Firefox

Tentatively moving this over to DOM:Events, not sure about it tho, I don't have the knowledge to understand performance profiles :(
Blind shooting the statement "seems to be handling events quite late".

Component: Untriaged → DOM: Events
Flags: needinfo?(timea.babos)
Product: Firefox → Core

Maybe IPC?

Component: DOM: Events → IPC
Whiteboard: [qf]

Nothing unexpected there. Tons of scripts being loaded.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Whiteboard: [qf]
You need to log in before you can comment on or make changes to this bug.