Message159124
Thank you, Antoine. It is interesting results, that on 64 bits greatly
accelerated the case, which on 32 bits sped up a little. It was the
pathology that a 2-byte to UCS1 was decoded in 1.5x slower than a 2-byte
to UCS2. Interestingly, a small acceleration for the other cases are
random deviations or consequential effect? Strange looks like the
difference for ascii-only text, this branch is not affected by the
patch. Except that the consequences of global optimization. The
deceleration of the decoding of the 4-byte data is expected.
Here is a patch, which is risky reception with signed numbers. For me,
it shows the acceleration of a few percent in comparison with the
previous patch. But I can not recommend it, it looks too hacker for such
a small improvement. It will not work on the exotic platforms where
signed numbers are implemented not as complement code (but Python is not
supports such platforms). |
|
Date |
User |
Action |
Args |
2012-04-24 08:27:33 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, jcea, pitrou, vstinner, Arfrever |
2012-04-24 08:27:32 | serhiy.storchaka | link | issue14654 messages |
2012-04-24 08:27:32 | serhiy.storchaka | create | |
|