T102: Rewrite the socket functions to use writev() and readv()
Originally reported by asn: https://bugs.libssh.org/T102
In order to improve memory management and reduce allocations, we should start moving to writev() and readv(). For Windows there is WSASend() and WSARecv() which works with a WSABUF array.
The first task would be to use it in src/socket.c, then we need to think about how we can rewrite the buffer API to match io vectors.
asn commented on 2018-09-04 18:20:54 UTC:
Once we have writev(), it is probably easy to get rid of ssh_buffer_prepend() which should give use quite some performance improvement!