• Victor Stinner's avatar
    asyncio: Only call _check_resolved_address() in debug mode · 2fc23130
    Victor Stinner yazdı
    * _check_resolved_address() is implemented with getaddrinfo() which is slow
    * If available, use socket.inet_pton() instead of socket.getaddrinfo(), because
      it is much faster
    
    Microbenchmark (timeit) on Fedora 21 (Python 3.4, Linux 3.17, glibc 2.20) to
    validate the IPV4 address "127.0.0.1" or the IPv6 address "::1":
    
    * getaddrinfo() 10.4 usec per loop
    * inet_pton(): 0.285 usec per loop
    
    On glibc older than 2.14, getaddrinfo() always requests the list of all local
    IP addresses to the kernel (using a NETLINK socket). getaddrinfo() has other
    known issues, it's better to avoid it when it is possible.
    2fc23130
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...