proposal-dynamic-import-host-adjustment icon indicating copy to clipboard operation
proposal-dynamic-import-host-adjustment copied to clipboard

Clarify effect on module loader cache and module reuse

Open mikesamuel opened this issue 5 years ago • 1 comments

Host internal caches key on strings to prevent repeated fetching and loading of semantically-equivalent module references. This proposal should not affect or complicate that.

@bmeck, you raised during plenary that implementations often have corner cases around garbage collection with cross-realm GC. Do I understand correctly that this is a concern re module-reference-string-wrapping objects as keys into per-realm caches related to import(moduleReferenceFromAnotherRealm)? Or is that a separable issue?

mikesamuel avatar Dec 05 '19 21:12 mikesamuel

This is true, I have lots of docs on this from our node loader work, but would prefer if we could sync up and try and disseminate what the pieces that truly affect the intent of the proposal sometime.

bmeck avatar Dec 05 '19 21:12 bmeck