Performance concern in calling GTK library(/ies)

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

  1. What causes this slow down? Is this cost once-only, meaning would a long-running app continuously calling a C library suffer too much?

  2. 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?

fix: English

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.