-
Notifications
You must be signed in to change notification settings - Fork 130
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
Provide an API for attachments in shared memory #255
Comments
There are traits in https://github.com/asajeffrey/shared-data/ and https://github.com/standard-ai/interprocess-traits for data that can be safely sent and referred to in shared memory, which could be used as the basis of "types that can be added as attachments". cc @lovesegfault @nagisa |
It would also be nice to do this and maintain interop with serde's |
cc. @Ekleog |
Currently most messages are serialized and deserialized using serde, which means that large messages are copied twice. This is possibly expensive, especially for messages which are being forwarded, ore do not need to be stored on the head (e.g. image data being loaded into a GL texture doesn't need to be first copied into main memory).
Currently there are two special cases: sending channels over channels, and
BytesSender
. It would be nice if we could generalize this to allow large types to be allocated in shared memory and serialized as an attachment with just the reference to shared memory.The text was updated successfully, but these errors were encountered: