still trying to optimizing module variable lookup
This commit is contained in:
parent
d3ab24d6c8
commit
fc521f6f7b
|
@ -262,7 +262,7 @@
|
|||
(define (assemble-prefix-reference a-ref)
|
||||
(cond
|
||||
[(EnvPrefixReference-modvar? a-ref)
|
||||
(format "M.e[M.e.length-~a][~a].prefix[M.e[M.e.length-~a][~a].offset]"
|
||||
(format "M.e[M.e.length-~a][~a][0][M.e[M.e.length-~a][~a][1]]"
|
||||
(add1 (EnvPrefixReference-depth a-ref))
|
||||
(EnvPrefixReference-pos a-ref)
|
||||
(add1 (EnvPrefixReference-depth a-ref))
|
||||
|
|
|
@ -57,11 +57,11 @@
|
|||
(symbol->string
|
||||
(ModuleLocator-name
|
||||
(ModuleVariable-module-name n))))
|
||||
(format "{moduleName:~s,name:~s,prefix:M.modules[~s].prefix,offset:M.modules[~s].getPrefixOffset(~s)}"
|
||||
(format "[M.modules[~s].prefix,M.modules[~s].getPrefixOffset(~s),{moduleName:~s,name:~s}]"
|
||||
module-name
|
||||
module-name
|
||||
(symbol->string (ModuleVariable-name n))
|
||||
module-name
|
||||
module-name
|
||||
(symbol->string (ModuleVariable-name n)))])]))
|
||||
names)
|
||||
",")
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
(provide version)
|
||||
(: version String)
|
||||
|
||||
(define version "1.194")
|
||||
(define version "1.195")
|
||||
|
|
Loading…
Reference in New Issue
Block a user