Message4364
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 |
|
Date |
User |
Action |
Args |
2009-03-28 00:11:58 | dregan | set | messageid: <1238199118.5.0.839783141692.issue1290@psf.upfronthosting.co.za> |
2009-03-28 00:11:58 | dregan | set | recipients:
+ dregan |
2009-03-28 00:11:58 | dregan | link | issue1290 messages |
2009-03-28 00:11:58 | dregan | create | |
|