Message4363

Author dregan
Recipients dregan
Date 2009-03-27.23:50:04
SpamBayes Score 6.4441105e-07
Marked as misclassified No
Message-id <1238197806.22.0.990234426118.issue1290@psf.upfronthosting.co.za>
In-reply-to
Content
600x slower network download speed with urllib.urlretrieve() or
urllib2.urlopen() compared to CPython

When I run the attached script using Jython 2.5b0 or Jython 2.5b3, it
performs file downloads 600 times slower than it does when running under
CPython.  I had to write a Java class in order to accomplish the same
thing, because it was so slow in Jython.

I have not tried it with any other versions of Jython.

There may not be as much of a difference on a slow network connection,
but on a fast network connection, it took me about 600 seconds to
download a 16MB file vs 1 second with CPython.  I tried downloading
using HTTP and FTP protocols.

Just thought somebody might be interested.
History
Date User Action Args
2009-03-27 23:50:06dregansetrecipients: + dregan
2009-03-27 23:50:06dregansetmessageid: <1238197806.22.0.990234426118.issue1290@psf.upfronthosting.co.za>
2009-03-27 23:50:06dreganlinkissue1290 messages
2009-03-27 23:50:05dregancreate