Closed Bug 1906778 Opened 1 year ago Closed 1 year ago

Fakespot addon appears to spend a ton of time in non-ion path (Blinterp)

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1827188

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

  1. Add fakespot extension to Firefox Nightly desktop browser
  2. 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")
  3. 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.

Attached file about:support

Feel free to WONTFIX or dupe to existing bugs.

We're spending most time in unsymbolicated frames under RegExp_prototype_Exec (for RegExp.prototype.exec). Maybe some slow regular expressions.

Blocks: sm-js-perf
Severity: -- → S2
Priority: -- → P3

This may end up being a dupe of bug 1827188

No longer depends on: 1906552
See Also: → 1827188, 1906552

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.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1827188
Resolution: --- → DUPLICATE
See Also: 1827188, 1906552
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: