Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to share data across FFI without a copy #1974

Open
jfro opened this issue Jan 31, 2024 · 1 comment
Open

Ability to share data across FFI without a copy #1974

jfro opened this issue Jan 31, 2024 · 1 comment

Comments

@jfro
Copy link

jfro commented Jan 31, 2024

We've been exploring using UniFFI for our updated version of a core library to make things easier on us than using straight C FFI code & hand written wrappers. Problem is we have some parts of the code where we'd want to minimize overhead due to low latency video use cases. So ideally when sharing something like an object (interface struct with a Vec<u8> inside for example) we'd want to be able to get the ptr/len to let the foreign swift/etc code do the final copy, avoiding the copy happening at FFI level as well.

@cadnza
Copy link

cadnza commented Apr 11, 2024

Just got here from #1485. @mhammond, can it be assumed from the comments on that issue that there aren't any plans to allow data sharing across FFI without copy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants