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 serhiy.storchaka
Recipients Arfrever, jcea, pitrou, serhiy.storchaka, vstinner
Date 2012-04-24.08:27:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335256196.2400.31.camel@raxxla>
In-reply-to <1335216193.84.0.395160670632.issue14654@psf.upfronthosting.co.za>
Content
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).
History
Date User Action Args
2012-04-24 08:27:33serhiy.storchakasetrecipients: + serhiy.storchaka, jcea, pitrou, vstinner, Arfrever
2012-04-24 08:27:32serhiy.storchakalinkissue14654 messages
2012-04-24 08:27:32serhiy.storchakacreate