Closed ralexstokes closed 1 year ago
Patch coverage: 81.69%
and project coverage change: +0.37%
:tada:
Comparison is base (
aa625fc
) 77.06% compared to head (abb7026
) 77.44%. Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Right now, the
SimpleSerialize
proc macro will allocate aDefault::default()
instance when deserializing and then set each field accordingly.We can save some space by parsing the input to get all relevant spans (along w/ validating invariants of the data) and then making an instance of the type once after we know where to segment the incoming encoding for each field.
This PR implements this change.