Message4364

Author dregan
Recipients dregan
Date 2009-03-28.00:11:58
SpamBayes Score 0.00091018504
Marked as misclassified No
Message-id <1238199118.5.0.839783141692.issue1290@psf.upfronthosting.co.za>
In-reply-to
Content
This seems to be something new with 2.5.  I tried it with Jython 2.2.1
and a 900K file and it wasn't slow:

mb:~ cephalopod$ jython2.5b3/jython /tmp/downloadTest 
time elapsed for urllib.urlretrieve(): 46.4300000668
Downloading 'http://.../testfile' to '/tmp/testfile'
time elapsed for urllib2.urlopen(): 47.4960000515
http://.../testfile
/tmp/testfile
mb:~ cephalopod$ jython2.2.1/jython /tmp/downloadTest 
time elapsed for urllib.urlretrieve(): 0.18600010871887207
Downloading 'http://.../testfile' to '/tmp/testfile'
time elapsed for urllib2.urlopen(): 0.1659998893737793
http://.../testfile
/tmp/testfile
mb:~ cephalopod$ python /tmp/downloadTest 
time elapsed for urllib.urlretrieve(): 0.161434173584
Downloading 'http://.../testfile' to '/tmp/testfile'
time elapsed for urllib2.urlopen(): 0.102355957031
http://.../testfile
/tmp/testfile
History
Date User Action Args
2009-03-28 00:11:58dregansetmessageid: <1238199118.5.0.839783141692.issue1290@psf.upfronthosting.co.za>
2009-03-28 00:11:58dregansetrecipients: + dregan
2009-03-28 00:11:58dreganlinkissue1290 messages
2009-03-28 00:11:58dregancreate