You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry for asking but is there a possibility for zero cost cgo calling in future?
140ns per call is too much.
rustlang has zero cost calling c / c++ now.
just wondering if that'll be the way in future.
If it were easy to have zero cost cgo calls, it would've been done by now. It wasn't one of Go design goals to have effortless and performant C integration, and it's not easy for a language with a runtime like Go's. Anyway, this is #9704 and #19574, closing here as a dup.
Activity
[-]proposal: affected/package: cgo, zero cost cgo calling?[/-][+]cgo: zero cost cgo calling[/+]ALTree commentedon Feb 27, 2022
If it were easy to have zero cost cgo calls, it would've been done by now. It wasn't one of Go design goals to have effortless and performant C integration, and it's not easy for a language with a runtime like Go's. Anyway, this is #9704 and #19574, closing here as a dup.