Comment #2 on issue 2777 by vlad.rom...@gmail.com: rbssh is very slow
https://code.google.com/p/reviewboard/issues/detail?id=2777

Replace the contents of /usr/bin/rbssh with the following:


#!/bin/sh
EXTRA_OPTS="-o UserKnownHostsFile=$HOME/.ssh/known_hosts -o ForwardX11=no -o LogLevel=ERROR"
# see https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing
EXTRA_OPTS="-o ControlPath=/tmp/master-%r@%h:%p -o ControlMaster=auto -o ControlPersist=10m $EXTRA_OPTS"
for k in $HOME/.ssh/id_{dsa,rsa} ; do
  test -e "$k" && EXTRA_OPTS="$EXTRA_OPTS -i $k"
done
exec /usr/bin/ssh $EXTRA_OPTS "$@"


Using native ssh was about 5x faster than the default Python rbssh implementation. Moreover, using the connection multiplexing feature of ssh further sped up things another 5x or so.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to