Fakespot addon appears to spend a ton of time in non-ion path (Blinterp)
Categories
(Core :: JavaScript Engine, enhancement, P3)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
- Add fakespot extension to Firefox Nightly desktop browser
- Go to https://prettier.io/playground
From the left-pane, select the following :
parser = Babel (should be default)
Debug = "Show input" only. (UNCHECK "Show AST") - Paste the attached sample text into the input pane
AR:https://share.firefox.dev/3zwFjWR
ER:
Even when triggered, the extension should take the fast ionmonkey path inside the Javascript engine. So it appears that the JS code inside the extension is using some pattern that ionmonkey cannot handle.
My naive thought is that the time is being spent in regexp and the Blinterp time shown is a know issue/limitation with the profiler.
cc: iain, canaltinova.
| Reporter | ||
Comment 1•1 year ago
|
||
| Reporter | ||
Comment 2•1 year ago
|
||
| Reporter | ||
Comment 3•1 year ago
|
||
Feel free to WONTFIX or dupe to existing bugs.
Comment 4•1 year ago
|
||
We're spending most time in unsymbolicated frames under RegExp_prototype_Exec (for RegExp.prototype.exec). Maybe some slow regular expressions.
Updated•1 year ago
|
| Reporter | ||
Comment 5•1 year ago
|
||
This may end up being a dupe of bug 1827188
| Reporter | ||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
I confirm that this is a profiler interface quirk, not an optimization problem. These regexps are being compiled to native code, which is the highest tier available for regexps. Given the Fakespot code, this is what we expect to see.
Updated•1 year ago
|
Description
•