x11rb icon indicating copy to clipboard operation
x11rb copied to clipboard

Consider using serialize_into in request struct serializations

Open khuey opened this issue 4 years ago • 0 comments

Now that the fixed length request is built out of a Vec, serialize_into could be used to fill it out. For efficiency you'd ideally preallocate the Vec's buffer with a Vec::with_capacity call up front, which would require calculating the total size of the buffer. Currently rustc does that for us. The additional complexity in the generator may not be worth it.

khuey avatar May 24 '20 13:05 khuey