Message196788
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 |
|
Date |
User |
Action |
Args |
2013-09-02 15:53:23 | lemburg | set | recipients:
+ lemburg, gvanrossum, loewis, vstinner, ezio.melotti, tchrist, kennyluck, serhiy.storchaka |
2013-09-02 15:53:23 | lemburg | link | issue12892 messages |
2013-09-02 15:53:23 | lemburg | create | |
|