Open Bug 1908327 Opened 4 months ago Updated 2 months ago

Migrate from Babel to lezer in debugger frontend usages

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: ochameau, Assigned: bomsy)

References

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

Details

Attachments

(1 file)

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.

See Also: → 1901375
Blocks: dbg-perf
Assignee: nobody → hmanilla
Status: NEW → ASSIGNED
Depends on: 1919570
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: