title: Open a remote file using paramiko in python slow
body: <p>I am using paramiko to open a remote sftp file in python. With the file object returned by paramiko, I am reading the file line by line and processing the information. This seems really slow compared to using the python in-built method 'open' from the os. Following is the code I am using to get the file object.</p>
  
  <p>Using paramiko (slower by 2 times) - </p>
  
  <pre><code>client = paramiko.SSHClient()
  client.load_system_host_keys()
  client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  client.connect(myHost,myPort,myUser,myPassword)
  sftp = client.open_sftp()
  fileObject = sftp.file(fullFilePath,'rb')
  </code></pre>
  
  <p>Using os -</p>
  
  <pre><code>import os
  fileObject = open(fullFilePath,'rb')
  </code></pre>
  
  <p>Am I missing anything? Is there a way to make the paramiko fileobject read method as fast as the one using the os fileobject?</p>
  
  <p>Thanks!!</p>