Shivaram Lingamneni <[email protected]> added the comment:
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.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46750>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com