Open
Description
XCBConnection
creates a copy of the passed in slice of request buffers. So far, RustConnection
does not, but instead switches between write_vectored
and plain write
for a buffer:
x11rb/src/rust_connection/mod.rs
Lines 682 to 683 in 314242b
I think it should be possible to get rid of that write
part by using a mutable slice for request sending. That way, partial writes can be done by replacing the respective IoSlice
.