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 <>
Charles-François: you get the idna overhead in 2.7, too, by specifying u'' 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.
Date User Action Args
2014-08-04 14:02:56loewissetrecipients: + loewis, gvanrossum, ncoghlan, pitrou, vstinner, neologix, serhiy.storchaka
2014-08-04 14:02:56loewissetmessageid: <>
2014-08-04 14:02:56loewislinkissue22127 messages
2014-08-04 14:02:56loewiscreate