[Python-Dev] New branch for r23c2 work

Martin v. L÷wis martin@v.loewis.de
22 Jul 2003 00:06:26 +0200

Skip Montanaro <skip@pobox.com> writes:

> Without digging deeper, I'm going to suggest that's the culprit.  I'll leave
> it to others to figure out what can be done.

Interestingly enough, this change was implemented to improve the
performance of name lookup, by releasing the GIL while perform name

Just thinks that getaddrinfo is not thread-safe on OSX, so it needs to
use a lock around getaddrinfo.

It is surprising that this has caused a slow-down, in particular on a
non-threaded application. If there was a bug in this code, I had
expected that to cause a deadlock, instead of causing a slow-down.