Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #16925, comment 7


Ignore:
Timestamp:
07/05/2011 05:36:48 AM (13 years ago)
Author:
knuthmorris
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16925, comment 7

    v1 v2  
    2626phpseclib consistently beats php ssh2 hands down.  And there's a fairly wide margin too.
    2727
    28 99% of the time the bottle neck in SSH is in how you're uploading data.  The values you're using for the window size and the SFTP packet size and what not.  And programming in C as opposed to PHP isn't going to change that.
     2899% of the time the bottle neck in SSH is in how you're uploading data.  The values you're using for the window size, the SFTP packet size, how many write packets you send before reading the read packets, etc.  And programming in C as opposed to PHP isn't going to change that.
    2929
    3030Maybe you're thinking that the bottle neck in PHP is the encryption.  Encryption that phpseclib already offloads to mcrypt, if mcrypt is installed.  mcrypt being a C extension.  And for stuff like diffie-hellman key exchange phpseclib offloads to gmp and then to bcmath if either of those are installed.