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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4