Message407952
| Author |
vstinner |
| Recipients |
corona10, erlendaasland, serhiy.storchaka, vstinner |
| Date |
2021年12月07日.17:21:43 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1638897703.15.0.976654131705.issue46006@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Serhiy: Do you recall the idea of the PyUnicode_CHECK_INTERNED() optimization?
The PyUnicode_CHECK_INTERNED() test is as old as the _PyUnicode_EqualToASCIIId() function.
commit f5894dd646f5e39918377b37b8c8694cebdca103
Author: Serhiy Storchaka <storchaka@gmail.com>
Date: Wed Nov 16 15:40:39 2016 +0200
Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.
The latter function is more readable, faster and doesn't raise exceptions.
Based on patch by Xiang Zhang. |
|