This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients gvanrossum, loewis, ncoghlan, neologix, pitrou, serhiy.storchaka, vstinner
Date 2014-08-04.14:02:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407160976.41.0.440665914102.issue22127@psf.upfronthosting.co.za>
In-reply-to
Content
Charles-François: you get the idna overhead in 2.7, too, by specifying u'127.0.0.1' as the address.

The idna overhead could be bypassed fairly easily in C by:
1. checking that the string is an ASCII string (this is possible in constant time, in 3.x)
2. directly passing the ASCII string to setipaddr (leaving any error detection to this routine)

Before adding caching, I'd check whether a cache lookup is actually faster than calling inet_pton.
History
Date User Action Args
2014-08-04 14:02:56loewissetrecipients: + loewis, gvanrossum, ncoghlan, pitrou, vstinner, neologix, serhiy.storchaka
2014-08-04 14:02:56loewissetmessageid: <1407160976.41.0.440665914102.issue22127@psf.upfronthosting.co.za>
2014-08-04 14:02:56loewislinkissue22127 messages
2014-08-04 14:02:56loewiscreate