3 ms·
Ahhh oops you're right. Point still stands, though -- I wonder why those languages should have different results?
by earenndil 8y ago
Ahhh oops you're right. Point still stands, though -- I wonder why those languages should have different results?
- masklinn 8y agoThey're both GC'd languages so the FFI may have some additional work/bookkeeping to do around the native calls, which C or Rust does not.
- dom96 8y agoOP poses a good question and I don't think it's a simple case of GC vs. no GC. In Nim's case it might have something to do with not using the C int types (PR already open to fix this: https://github.com/dyu/ffi-overhead/pull/6 https://github.com/dyu/ffi-overhead/pull/6)