> As I recall, people have reported that libssh2's fixed windowing > implementation causes a good deal of slowdown here on fast links. > Dynamically changing the window size would likely make a difference to > the speed.
Hi, I think that the biggest performance issue is that libssh2 is synchronous. We send one packet and wait for the answer. That really is not a very efficient way of using network bandwidth. OpenSSH sftp implementation, for example, can send and receive data asynchronously consuming as bandwidth much more efficiently. This approach requires packet ordering upon receival, but that shouldn't be a huge issue. As a side note, OpenSSH flow control has its own bottlenecks too: http://www.psc.edu/networking/projects/hpn-ssh/ Br, /jUSSi -- perl -e '$...@=[[0,0112,0,0],[0,0101,0,0], [0,0120,0,0],[0,0110,0,0]];$[=256/8-0x1D; print(chr(@{$_}[+($[+1-1+1)]))for(@{...@});' ------------------------------------------------------------------------------ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel