Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I found <a href="http://code.google.com/p/urllib3/" rel="nofollow">urllib3</a> and it claims to reuse exisiting TCP connection. </p> <p>As I already stated in a comment to the question I disagree with the claim, that this will not make a big difference: Because auf TCP <a href="http://en.wikipedia.org/wiki/Slow-start" rel="nofollow">Slow Start</a> Algorithm every newly created connection will be slow at first. So reusing the same TCP socket will make a difference if the data is big enoug. And I think for 100 the data will be between 10 and 100 MB.</p> <p>Here is a code sample from <a href="http://code.google.com/p/urllib3/source/browse/test/benchmark.py" rel="nofollow">http://code.google.com/p/urllib3/source/browse/test/benchmark.py</a></p> <pre><code>TO_DOWNLOAD = [ 'http://code.google.com/apis/apps/', 'http://code.google.com/apis/base/', 'http://code.google.com/apis/blogger/', 'http://code.google.com/apis/calendar/', 'http://code.google.com/apis/codesearch/', 'http://code.google.com/apis/contact/', 'http://code.google.com/apis/books/', 'http://code.google.com/apis/documents/', 'http://code.google.com/apis/finance/', 'http://code.google.com/apis/health/', 'http://code.google.com/apis/notebook/', 'http://code.google.com/apis/picasaweb/', 'http://code.google.com/apis/spreadsheets/', 'http://code.google.com/apis/webmastertools/', 'http://code.google.com/apis/youtube/', ] from urllib3 import HTTPConnectionPool import urllib pool = HTTPConnectionPool.from_url(url_list[0]) for url in url_list: r = pool.get_url(url) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload