-
Notifications
You must be signed in to change notification settings - Fork 65
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
Request for zero-copy deserializing #36
Comments
FYI, this probably isn't possible unless the Deserializer is implemented with a buffer or reads the entire |
@sunny-g thanks for pointing that out. But all in all, zero copy could not be achieved without the deserializer supporting it regardless of how I use this library or serde. |
I have been looking at the design of https://github.com/3Hren/msgpack-rust for insight into how to approach this in terms of api. Would anyone have a better idea? This is similar to how serde_json does the same thing. I would plan to keep |
When I tried deserializing a structure with borrowed strings, an error was returned, stating that an owned string was not expected. It would be great to support zero-copy deserializing.
The text was updated successfully, but these errors were encountered: