Skip to content

Don't load all instance exports into a Store immediately after instantiation #2916

@alexcrichton

Description

@alexcrichton

Currently after instantiating an instance we immediately load all instance exports into Store-like objects along the lines of Func, Global, etc. If you only end up using one or two items from an Instance, however, this could be a slowdown for instantiation if a module has a lot of exports. We should likely experiment with strategies which don't require insertion of items eagerly into the store and consider doing this lazily as items are later requested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions