openSUSE / libpathrs

C-friendly API to make path resolution safer on Linux.
GNU Lesser General Public License v3.0
80 stars 6 forks source link

go bindings: should we try to use rustgo (no cgo)? #87

Open cyphar opened 1 month ago

cyphar commented 1 month ago

cgo function calls are quite expensive (~20x) and so there might be an argument that we should try to do some Go assembly hacks to try to avoid using cgo. On the other hand, there are obvious maintenance issues with magic assembly code, and it's not clear that the (real) overhead of cgo is a practical issue.

Food for thought...

Some links: