ralexstokes / ssz-rs

Implementation of ethereum's `ssz`
Apache License 2.0
102 stars 40 forks source link

can simplify some of the `ser` code #64

Closed ralexstokes closed 1 year ago

ralexstokes commented 1 year ago

variable can collapse

could probably compute the partial sums of variable parts along the way, instead of iterating again...

skip extra offset_buffer and just write directly to buffer

ralexstokes commented 1 year ago

going to write total_size or not return that data so we don't need to count twice