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

Add API for shared memory transport #33

Open
JEnoch opened this issue May 10, 2021 · 2 comments
Open

Add API for shared memory transport #33

JEnoch opened this issue May 10, 2021 · 2 comments
Labels
new feature Something new is needed

Comments

@JEnoch
Copy link
Member

JEnoch commented May 10, 2021

zenoh in Rust implement a zero-copy shared memory transport. See examples of use:

We need to make this transport also accessible from the zenoh Python API.

@JEnoch
Copy link
Member Author

JEnoch commented May 10, 2021

A use case that popped up recently is the video capture in Python and transport of images to another co-localised Python app.
An open question is: would this be achievable with zero-copy ? I.e. would a video capture library in Python be able to dump images directly in a shared memory buffer allocated by the zenoh's SharedMemory Manager ?

@kydos
Copy link
Member

kydos commented May 10, 2021

I think that something we should add quickly since there are plenty of uses of openCV in Python and it would be nice for they to leverage zenoh's zero-copy when sharing images across process boundaries. I think the trick is to expose our share memory allocator in such a way that is friendly for use in vision libraries.

@Mallets Mallets added the new feature Something new is needed label Feb 15, 2022
@Mallets Mallets assigned JEnoch and unassigned JEnoch Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Something new is needed
Projects
None yet
Development

No branches or pull requests

3 participants