[Python-bugs-list] [ python-Bugs-583975 ] gethostbyaddr lag

noreply@sourceforge.net noreply@sourceforge.net
Fri, 19 Jul 2002 11:41:53 -0700


Bugs item #583975, was opened at 2002-07-19 12:41
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=583975&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason R. Mastaler (jasonrm)
Assigned to: Nobody/Anonymous (nobody)
Summary: gethostbyaddr lag

Initial Comment:
For more info, also see
http://mail.python.org/pipermail/python-list/2002-July/113706.html
 
Perl's gethostbyaddr doesn't seem to have this problem
as shown
below.  Should I report this in the bug tracker?
 
$ time perl -MSocket -lwe 'print +(gethostbyaddr
inet_aton("datavortex.net"), AF_INET)[0]'
datavortex.net
 
real    0m0.063s
user    0m0.050s
sys     0m0.010s
 
$ time python2 -c 'from socket import * ; print
gethostbyaddr("datavortex.net")[0]'
datavortex.net
 
real    0m20.176s
user    0m0.070s
sys     0m0.020s
 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=583975&group_id=5470