22 Jul
2003
22 Jul
'03
3:36 a.m.
Skip Montanaro
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 lookup. 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. Regards, Martin