Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExpose a way to get the maximum encoded size for a give type #263
Comments
|
Seems reasonable. I am closing the issue because I would prefer for this to live in a different crate -- it will need its own trait and derive macro to expose this information. |
|
I've started implementing this here: https://github.com/jrmuizel/bincode-size |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This would be helpful speeding up serialization/deserialization because we can lift the length out completely and make it not dependent on the actual value.