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 pitrou, serhiy.storchaka, vstinner
Date 2012-03-27.21:36:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1332884184.81.0.897159898539.issue14419@psf.upfronthosting.co.za>
In-reply-to
Content
As you can see, the unpatched code does not depend on the alignment. With patches aligned data (which constitute the vast majority, if not all) decoded much faster and non-aligned data decoded sometimes slightly slower. Time of decoding 2-10-bytes practically does not depend on the string length, most of the time (0.1 ms) occupy the overhead of function calls and objects creation and destruction. But even in this case, the patches show a steady increase in performance. When the overhead costs are reduced advantage becomes stronger. For short strings the second patch is better the first patch, as expected.
History
Date User Action Args
2012-03-27 21:36:24serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner
2012-03-27 21:36:24serhiy.storchakasetmessageid: <1332884184.81.0.897159898539.issue14419@psf.upfronthosting.co.za>
2012-03-27 21:36:24serhiy.storchakalinkissue14419 messages
2012-03-27 21:36:23serhiy.storchakacreate