[Python-Dev] New branch for r23c2 work

Jack Jansen Jack.Jansen@cwi.nl
Tue, 22 Jul 2003 17:01:46 +0200


On Tuesday, Jul 22, 2003, at 16:33 Europe/Amsterdam, Michael Hudson 
wrote:

> Skip Montanaro <skip@pobox.com> writes:
>
>> When run on my Mac, it takes between 2 and 7 microseconds per 
>> getaddrinfo
>> call.  The exact same instrumented call inside 
>> socketmodule.c:setipaddr at
>> line 700 takes about 150 *milli*seconds per call.
>
> It might be something horrendous like linking with AppKit means you
> get a difference version of getaddrinfo that goes through NetInfo.

Good point! Or the C++ runtime, or some other thing Python pulls in.

Skip: could you try linking your test program with a command line 
similar to what
Python uses?
--
Jack Jansen, <Jack.Jansen@cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman