-
I tried compiling a statement that prints hello world and found that the generated executable file is too large. Is there a way to reduce the execution volume? |
Beta Was this translation helpful? Give feedback.
Answered by
mvertes
May 24, 2023
Replies: 1 comment 2 replies
-
The size can be reduced by not including the full standard library symbols: package main
import "github.com/traefik/yaegi/interp"
func main() {
i := interp.New(interp.Options{})
i.Eval(`println("Hello world")`)
} The executable size is 6M instead of 24M if stdlib is included ( |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mvertes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The size can be reduced by not including the full standard library symbols:
The executable size is 6M instead of 24M if stdlib is included (
i.Use(stdlib.Symbols)
).