alexcrichton opened issue #2916:
Currently after instantiating an instance we immediately load all instance exports into
Store
-like objects along the lines ofFunc
,Global
, etc. If you only end up using one or two items from anInstance
, 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.
alexcrichton closed issue #2916:
Currently after instantiating an instance we immediately load all instance exports into
Store
-like objects along the lines ofFunc
,Global
, etc. If you only end up using one or two items from anInstance
, 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.
Last updated: Nov 22 2024 at 16:03 UTC