toplevel lookup should be cheaper
This commit is contained in:
parent
8dae95902c
commit
9aa1ac12d8
|
@ -171,9 +171,9 @@
|
|||
(for/list ([modprovide (get-provided-names bytecode)]
|
||||
[i (in-naturals)])
|
||||
(string-append
|
||||
(format "modrec.getNamespace().set(~s,exports[~s]);\n"
|
||||
(symbol->string (ModuleProvide-internal-name modprovide))
|
||||
(symbol->string (ModuleProvide-external-name modprovide)))
|
||||
; (format "modrec.getNamespace().set(~s,exports[~s]);\n"
|
||||
; (symbol->string (ModuleProvide-internal-name modprovide))
|
||||
; (symbol->string (ModuleProvide-external-name modprovide)))
|
||||
(format "modrec.prefix[~a]=exports[~s];\n"
|
||||
i
|
||||
(symbol->string (ModuleProvide-external-name modprovide)))))))
|
||||
|
|
|
@ -88,7 +88,6 @@
|
|||
};
|
||||
|
||||
ModuleRecord.prototype.finalizeModuleInvokation = function () {
|
||||
var i, len = this.prefix.names.length;
|
||||
this.namespace.refreshPrefixMapping();
|
||||
};
|
||||
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
(provide version)
|
||||
(: version String)
|
||||
|
||||
(define version "1.188")
|
||||
(define version "1.189")
|
||||
|
|
Loading…
Reference in New Issue
Block a user