New submission from Jordon.X <[email protected]>:
In normalizestring(),
ch = Py_TOLOWER(Py_CHARMASK(ch));
Where Py_TOLOWER is defined as following,
#define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
Redundant Py_CHARMASK called here.
----------
components: Unicode
messages: 348955
nosy: ezio.melotti, qigangxu, vstinner
priority: normal
severity: normal
status: open
title: Redundant Py_CHARMASK called in normalizestring(codecs.c)
type: performance
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37752>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com