evaluator: significant performance enhancements

This commit is contained in:
alex committed 2023-09-21 17:21:53 -07:00
1 parent 1a759b9746
commit 4758e92676
21 files changed
+260 -71

No files matched your search

@@ -19,7 +19,7 @@ class RunCommand : CliktCommand(help = "Run Program", name = "run") {
override fun run() {
val tool = FileTool(PlatformFsProvider.resolve(path))
val scope = Scope()
val scope = Scope.root()
val main = tool.loadMainFunction(scope, setupEvaluator = {
addNativeProvider("internal", InternalNativeProvider(quiet = quiet))
addNativeProvider("ffi", JnaNativeProvider())
@@ -35,7 +35,7 @@ class RunCommand : CliktCommand(help = "Run Program", name = "run") {
}
maybeLoopAndMeasure(loop, measure) {
main.call(Arguments(emptyList()))
main.call(emptyList(), CallStack())
}
}
}