Message156957
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. |
|
Date |
User |
Action |
Args |
2012-03-27 21:36:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner |
2012-03-27 21:36:24 | serhiy.storchaka | set | messageid: <1332884184.81.0.897159898539.issue14419@psf.upfronthosting.co.za> |
2012-03-27 21:36:24 | serhiy.storchaka | link | issue14419 messages |
2012-03-27 21:36:23 | serhiy.storchaka | create | |
|