python - How to speed up read method call of object returned by urllib2.urlopen -


i have following code.

 req = urllib2.request(url,'',txheaders)  f = urllib2.urlopen(req)  data = f.read()  f.close() 

in above code, read function takes 1-2 minutes when response of 58kb. how can make faster.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -