This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients ezio.melotti, gvanrossum, kennyluck, lemburg, loewis, serhiy.storchaka, tchrist, vstinner
Date 2013-09-02.15:53:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <5224B471.3080809@egenix.com>
In-reply-to <1378136048.08.0.601314131306.issue12892@psf.upfronthosting.co.za>
Content
You should be able to squeeze out some extra cycles by
avoiding the bit calculations using a simple range check
for ch >= 0xd800:

+# if STRINGLIB_MAX_CHAR >= 0xd800
+            if (((ch1 ^ 0xd800) &
+                 (ch1 ^ 0xd800) &
+                 (ch1 ^ 0xd800) &
+                 (ch1 ^ 0xd800) & 0xf800) == 0)
+                break;
+# endif
History
Date User Action Args
2013-09-02 15:53:23lemburgsetrecipients: + lemburg, gvanrossum, loewis, vstinner, ezio.melotti, tchrist, kennyluck, serhiy.storchaka
2013-09-02 15:53:23lemburglinkissue12892 messages
2013-09-02 15:53:23lemburgcreate