Add a g_output_stream_writev() (and async variant) that takes a vector of data chunks to write
It would be great if
GOutputStream had a new virtual method for writing (sync and async) a vector of data chunks, similar to
This would be potentially more efficient as only a single syscall has to be made to send the kernel all data.
It should be possible to add this in a backwards compatible way by falling back to the existing write functions, iterating over all chunks and writing them one by one. The main question is what type to use for the vector of chunks.
GOutputMessage as used by e.g.
g_socket_send_messages() could be used but has the socket address and control messages, which make no sense here, so maybe a new struct that just contains the
If this seems like something that would be acceptable for GLib, I'd work on implementing it.