Stop exporting large data set from the parser worker for inline previews
Categories
(DevTools :: Debugger, task)
Tracking
(firefox119 fixed)
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Based on bug 1843454 comment 1 investigations, we are currently sending very large arrays from the parser worker thread to the main thread.
The largest arrays are actually only used by inline preview to implement findBestMatchExpression:
https://searchfox.org/mozilla-central/rev/a7e33b7f61e7729e2b1051d2a7a27799f11a5de6/devtools/client/debugger/src/utils/ast.js#5-28
Instead, we could keep the data stored within the worker thread and lazily call a method on-demand in the worker thread.
We would still have to parse the whole file and still craft these large arrays, but drastically reduce GC overhead and CPU consumption solely related to data passing between threads.
Assignee | ||
Comment 1•1 year ago
|
||
These three attributes are very large arrays and we could easily keep them
within the worker thread by exposing new dedicated method.
Updated•1 year ago
|
Comment 3•1 year ago
|
||
bugherder |
Comment 4•1 year ago
|
||
This might have caused a perf alert: https://treeherder.mozilla.org/perfherder/alerts?id=39518&hideDwnToInv=0
Description
•