Closed Bug 1722218 Opened 4 years ago Closed 4 years ago

Categories

(Core :: JavaScript Engine: JIT, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

https://codepen.io/shubniggurath/pen/oNZLQJW lags a lot. It is slow in Chrome too, whuch probably implies its a poorly written demo

I am filing this bug only to see if there is anything obvious we can improve. If nothing is low-hanging or easy, I will be happy to WONTFIX.

https://share.firefox.dev/3x5iTFp

It looks like 1/3 of the total time is spent in the following function;

function e(t2, a2) {
  if (!Object.prototype.hasOwnProperty.call(t2, a2))
    throw new TypeError("attempted to use private field on non-instance");
  return t2;
}

It looks like a polyfill for private fields. I expect it would be faster if the demo used the native private fields implementation (available in Firefox 90).

Iain, do you think we should investigate this issue, or close this bug?

Severity: -- → S4
Type: task → defect
Flags: needinfo?(iireland)
Priority: -- → P3

Given that it's also slow in Chrome, and there's an obvious way to fix the demo, I think it's fine to close this.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(iireland)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.