Closed dtolnay closed 4 years ago
While this is an impressive result, I’ve closed https://github.com/serde-rs/serde/issues/1824 now that updating bincode
has reduced deserialization-related code size by 4×: https://github.com/servo/servo/pull/27063
With this reduced impact, I don’t know if it is worth maintaining a non-trivial manual Deserialize
impl instead of deriving it. @pyfisch, what do you think?
With this reduced impact, I don’t know if it is worth maintaining a non-trivial manual
Deserialize
impl instead of deriving it. @pyfisch, what do you think?
If you don't think this is needed for servo, I will close this.
This PR drops the number of lines of LLVM IR involved in deserializing by 98.5%.
Before:
After:
The total number of lines of LLVM IR in the following test program drops from 56244 to 8299:
You may be interested in making a similar change for some of the other big enums.
@SimonSapin https://github.com/serde-rs/serde/issues/1824