[issue22127] performance regression in socket getsockaddrarg()

Charles-François Natali report at bugs.python.org
Mon Aug 4 15:54:19 CEST 2014


Charles-François Natali added the comment:

Parsing a bytes object i.e. b'127.0.0.1' is done by inet_pton(), so
it's probably cheap (compared to a syscall).

If we had getaddrinfo() and gethostbyname() return bytes instead of
strings, it would be a huge gain.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22127>
_______________________________________


More information about the Python-bugs-list mailing list