Recently I switched (so to speak) my GoAWK interpreter from using a tree-walking interpreter to a bytecode compiler with a virtual machine, and got a noticeable performance boost. Write-up here if you're interested: https://benhoyt.com/writings/goawk-compiler-vm/
TLDR: It's significantly more code, but also 10-20% faster. It'll get even faster when Go implements "switch" using jump tables (looking forward to https://go-review.googlesource.com/c/go/+/357330/). -Ben -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/d010af1b-3d15-40a5-be37-bbb1b3603c82n%40googlegroups.com.