4 ms·
I think the problem is the ffi overhead to C from Go is really high, like, way higher than any comparable language, because of the segmented stack thing. I mean
by pasabagi 8y ago
I think the problem is the ffi overhead to C from Go is really high, like, way higher than any comparable language, because of the segmented stack thing. I mean the nice thing about Love2d is that LuaJIT has the best ffi overhead when calling C.
https://github.com/dyu/ffi-overhead https://github.com/dyu/ffi-overhead
- pjmlp 8y agoIt always felt strange to me the CGO approach, instead of what many compiled languages offer, e.g.: function exit(code: integer); external; cdecl; No need to have two phase compilation or run external tools.