Skip to main content
Code Review

Return to Revisions

3 of 3
replaced http://stackoverflow.com/ with https://stackoverflow.com/

Couple things I'd try:

..if you're making several requests to the same host, the underlying TCP connection will be reused, which can result in a significant performance increase

Some micro-optimization ideas:

  • move the hdr dictionary definition to the module level to avoid redefining it every time urlResolution() is called (and, since it is a constant use upper-case; and pick a more readable variable name - HEADERS?)
alecxe
  • 17.5k
  • 8
  • 52
  • 93
default

AltStyle によって変換されたページ (->オリジナル) /