Replies: 1 comment 1 reply
-
@dup2 What about using There is some copying when converting C pointer to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
I just discovered this gem and integrated it into https://github.com/orlon-pro/foxify - works great.
However, I did not find out how to pass data by reference (which I did when using FFI natively) to pass large buffers of data from ruby into a go function. For now I use
ruby.Value2String(ruby.VALUE(data))
which I think is a performance penalty as it is used later as[]byte
.Can anyone provide me a hint on how to improve this?
Beta Was this translation helpful? Give feedback.
All reactions