Open Bug 1874698 Opened 2 years ago Updated 8 months ago

[META] Remove the Babel Parser Worker

Categories

(DevTools :: Debugger, task)

task

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: bomsy, Assigned: bomsy)

References

(Depends on 2 open bugs, Blocks 1 open bug)

Details

(Keywords: meta)

Attachments

(2 obsolete files)

META bug to track the work to remove the babel parser worker

Babel parser (parser-worker.js) is by far the main performance culprit of the Debugger.
We do use the parser for various debugger frontend features, highlighted in the following document:
https://docs.google.com/document/d/12xq6Q5qDEuNDtKwSm9LwKSUA4k_zT-r96-3TWIimoqA/edit#heading=h.ldmzcj1wna5e

Thanks to the migration to CodeMirror 6 (bug 1773246), we will be able to use its new parser lezer.
This parser supports parsing only chunks of code and will allow us to only parse the current viewport.
Babel only supports parsing the whole file, which is the main reason why this particular part of the debugger is slow.

Type: enhancement → task

Depends on D198021

Assignee: nobody → hmanilla
Status: NEW → ASSIGNED
Keywords: meta
Summary: Cleanup parser worker → [META] Remove the babel parser worker
Summary: [META] Remove the babel parser worker → [META] Remove the Babel Parser Worker
Attachment #9372849 - Attachment is obsolete: true
Attachment #9372848 - Attachment is obsolete: true
Depends on: 1873432
Depends on: 1908327
Depends on: 1874656
Depends on: 1932346
Depends on: 1932351
Depends on: 1932406
Depends on: 1942459
No longer depends on: 1942459
Depends on: 1943082
Depends on: 1943945
Depends on: 1943948
Depends on: 1943949
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: