evaluator: cache native function resolution

This commit is contained in:
2023-09-09 01:51:04 -04:00
parent e8766323ee
commit 3a43b56fcd
2 changed files with 25 additions and 8 deletions

10
examples/java-speed.pork Normal file
View File

@ -0,0 +1,10 @@
import java java.lang.Math
import java java.lang.System
import java java.io.PrintStream
export func main() {
while true {
let pi = java_lang_Math_PI_get()
println(pi)
}
}