[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

STINNER Victor report at bugs.python.org
Thu May 9 19:11:53 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

My PR 13110 (avoid functools) makes codecs.lookup('cp65001').encode() made 2.7x slower:
https://github.com/python/cpython/pull/13110#issuecomment-491095964
417 ns +- 17 ns

My PR 13230 (remove cp65001.py) makes it 1.5x faster :-)
https://github.com/python/cpython/pull/13230#issuecomment-491099012
105 ns +- 3 ns

The reference is: 156 ns +- 3 ns.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36778>
_______________________________________


More information about the Python-bugs-list mailing list