Hello, I’m very new to Go. Recently I came across this particular benchmark where the overhead of FFI to C is measured in various languages:
As you can see, Go - C calls are remarkably slow (around 40 times slower than many other languages). I am interested to know
What causes this slow down? Is this cost once-only, meaning would a long-running app continuously calling a C library suffer too much?
More specifically, I am using Go for a personal project where I use GTK for UI. The project is fairly non-trivial and expected to be run for a long time on users’ machine, much like an IDE/Word processor. How does the overhead factor into this? Will I get a massive performance hit because of calling GTK frequently?