Closed Evanfeenstra closed 11 months ago
serialize_bin doesn't need to take a Vec<u8>, it can just take the &[u8] directly
Vec<u8>
&[u8]
Then all the places that call serialize_bin don't need to do to_vec(), should make things a bit more efficient
to_vec()
serialize_bin doesn't need to take a
Vec<u8>
, it can just take the&[u8]
directlyThen all the places that call serialize_bin don't need to do
to_vec()
, should make things a bit more efficient