Open Bug 1724236 Opened 3 years ago Updated 9 months ago

Use JS::Stencil directly in dom::ScriptLoader

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

People

(Reporter: tcampbell, Unassigned)

References

(Blocks 2 open bugs)

Details

Now that Stencil is core to all our parsing and caching flows for JS, we should directly use the JS::Stencil type from the dom::ScriptLoader and explicitly calling instantiate. This will allow us to build in-memory caches around JS::Stencil to improve our caching story.

Blocks: 1646494

It might be necessary to fix Bug 1687973 so that this proposed change can also cover the decode case. Even without that, it is still possible to support to do in-memory caching with just the non-decode path.

Depends on: 1687973
Assignee: tcampbell → nobody

No one is actively working on this, so it is unlikely to land before the next release.

Priority: P1 → P2
You need to log in before you can comment on or make changes to this bug.