diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-10-29 22:31:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-10-29 22:31:50 (GMT) |
commit | 602f7cf0b9afc1c7e0ab859bcfb219d20158a786 (patch) | |
tree | 29523b171dac7721bee7b985a868863bcc2e6353 /PC/_msi.c | |
parent | ab457a2193a612610e996dd4b838437815ad8671 (diff) | |
download | cpython-602f7cf0b9afc1c7e0ab859bcfb219d20158a786.zip cpython-602f7cf0b9afc1c7e0ab859bcfb219d20158a786.tar.gz cpython-602f7cf0b9afc1c7e0ab859bcfb219d20158a786.tar.bz2 |
Issue #19424: Optimize PyUnicode_CompareWithASCIIString()
Use fast memcmp() instead of a loop using the slow PyUnicode_READ() macro.
strlen() is still necessary to check Unicode string containing null bytes.
Diffstat (limited to 'PC/_msi.c')
0 files changed, 0 insertions, 0 deletions