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 slingamn
Recipients christian.heimes, slingamn
Date 2022-02-14.18:24:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644863062.69.0.138675044387.issue46750@roundup.psfhosted.org>
In-reply-to
Content
Sorry, I should have been more clear: I am including the initial costs of importing stringprep and unicodedata. On my system:

$ python3 -c "import time; start = time.time(); r = 'a'.encode('idna'); elapsed = time.time() - start; print(elapsed)"
0.0053806304931640625

So the earlier measurement of 15 milliseconds was excessive (I'm not sure what happened) but it's the right order of magnitude: I can reproduce 5 milliseconds reliably.
History
Date User Action Args
2022-02-14 18:24:22slingamnsetrecipients: + slingamn, christian.heimes
2022-02-14 18:24:22slingamnsetmessageid: <1644863062.69.0.138675044387.issue46750@roundup.psfhosted.org>
2022-02-14 18:24:22slingamnlinkissue46750 messages
2022-02-14 18:24:22slingamncreate