Thanks everyone.<div><br></div><div>Well, I&#39;ve added a timer to the code and I&#39;m running it from my house.  I&#39;m getting the same times here from both laptops which I didn&#39;t expect at all.  I guess I&#39;ll have to take my linux laptop to work and see what my tests produce there.</div>
<div><br></div><div>And as an FYI, my windows laptop is actually much more capable than my linux laptop.</div><div>Linux is an IBM Thinkpad T61</div><div>Windows is an Alienware M11x R2( i7 with 4gb of ram)</div><div><br>
</div><div>Thanks again.</div><div>Tony</div><div><br><div class="gmail_quote">On Fri, Oct 14, 2011 at 7:01 PM, Steven D&#39;Aprano <span dir="ltr">&lt;<a href="mailto:steve@pearwood.info">steve@pearwood.info</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Tony Pelletier wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So, my question is.  Why is it running so much faster on linux?  Is it the<br>
way that linux is handling the socket?  Does windows open and close it<br>
whereas linux might leave it open and just pump data through?<br>
</blockquote>
<br></div>
Perhaps; you&#39;ll have to read the source code to see if there are differences in geopy, or in the code that it relies on. But I suspect you *might* be seeing this bug:<br>
<br>
<a href="http://www.mail-archive.com/python-dev@python.org/msg40692.html" target="_blank">http://www.mail-archive.com/<u></u>python-dev@python.org/<u></u>msg40692.html</a><br>
<br>
It&#39;s a long thread, but the summary is: reading data over the Internet on Windows using some versions of Python is *sometimes* EXTREMELY slow compared to Linux or third party tools. This is due to a bug in the httplib module, which used a naive way of concatenating many little strings. Most of the time, Python has an optimization that can disguise how slow this is, but occasionally the optimization can fail.<div>
<div></div><div class="h5"><br>
<br>
<br>
<br>
-- <br>
Steven<br>
<br>
______________________________<u></u>_________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br></div>