[Tutor] Windows vs Linux processing speed.
tony.pelletier at gmail.com
Sat Oct 15 05:24:51 CEST 2011
Well, I've added a timer to the code and I'm running it from my house. I'm
getting the same times here from both laptops which I didn't expect at all.
I guess I'll have to take my linux laptop to work and see what my tests
And as an FYI, my windows laptop is actually much more capable than my linux
Linux is an IBM Thinkpad T61
Windows is an Alienware M11x R2( i7 with 4gb of ram)
On Fri, Oct 14, 2011 at 7:01 PM, Steven D'Aprano <steve at pearwood.info>wrote:
> Tony Pelletier wrote:
> So, my question is. Why is it running so much faster on linux? Is it the
>> way that linux is handling the socket? Does windows open and close it
>> whereas linux might leave it open and just pump data through?
> Perhaps; you'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:
> It'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.
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor