Antoine Pitrou <pit...@free.fr> added the comment:

We could try not to release the GIL when socket methods are called on a 
non-blocking socket.

Regardless, I've re-run the tests under the Linux machine, with two spinning 
threads:

* python 2.7: 
25.580 seconds (409914.612 bytes/sec)
* python 3.2:
32.216 seconds (325485.029 bytes/sec)

(and as someone mentioned, the "priority requests" mechanism which was in the 
original new GIL patch might improve things. It's not an ideal time for me to 
test, right now :-))

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7946>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to