Open Bug 1402275 Opened 7 years ago Updated 2 years ago

Can we store template object for async generator's result object per each generator?

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox58 --- fix-optional

People

(Reporter: arai, Unassigned)

References

Details

(Whiteboard: [js:tech-debt])

Derived from bug 1394682.

Currently the template object is stored per each compartment, and sweeped for each GC.
the template object uses Unknown type for "value" property, since the template object is shared between generators.

we could create the template object for each async generator, and add better type information (from the initial value maybe?).
I haven't checked if this really introduces performance gain tho.
Priority: -- → P3
Whiteboard: [js:tech-debt]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.