mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 05:10:55 +00:00
evaluator: cache native function resolution
This commit is contained in:
10
examples/java-speed.pork
Normal file
10
examples/java-speed.pork
Normal 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user