commit | 602f7cf0b9afc1c7e0ab859bcfb219d20158a786 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Oct 29 23:31:50 2013 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Oct 29 23:31:50 2013 +0100 |
tree | 29523b171dac7721bee7b985a868863bcc2e6353 | |
parent | ab457a2193a612610e996dd4b838437815ad8671 [diff] |
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.