-
Notifications
You must be signed in to change notification settings - Fork 27
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
Ideas for serialization rework #15
Comments
While working on #100 I noticed a couple other nit-picky things with
|
Enabling zero-copy decoding is a good direction to take. I did the simplest thing that would work in the current iteration of the
Applications that don't want the error can use |
I would really like using IMO, if we decide we want to avoid unnecessarily reading all of the data before parsing and/or making unnecessary copies, using [1] The |
One additional idea that fell out of a discussion this morning: Instead, we could simply provide the necessary support such that relevant types could We'll need some way to indicate the "size" ( This functionality would ideally be integrated into |
We currently use libprio's
codec::Decode
trait for decoding all messages in the DAP protocol. Currently all fields are owned by the struct, i.e., no fields reference data somewhere else. This means that, when decoding a message from the wire, it is necessary to copy bytes into the struct fields. This is fine for short messages, but some messages are quite long. In particular, we would like to be able to decode aggregate requests and responses and have the corresponding structs hold a reference to the underlying data.The text was updated successfully, but these errors were encountered: