Message401661
Interestingly, "little" is faster than "big".
$ python3.10 -m timeit -r11 -s 'x=3452452454524' 'x.to_bytes(10, "little")'
5000000 loops, best of 11: 82.7 nsec per loop
$ python3.10 -m timeit -r11 -s 'x=3452452454524' 'x.to_bytes(10, "big")'
5000000 loops, best of 11: 90.6 nsec per loop |
|
Date |
User |
Action |
Args |
2021-09-12 11:20:58 | rhettinger | set | recipients:
+ rhettinger, barry, mark.dickinson, ncoghlan, vstinner, petr.viktorin, ethan.furman, serhiy.storchaka, veky, brandtbucher |
2021-09-12 11:20:58 | rhettinger | set | messageid: <1631445658.16.0.770802421368.issue45155@roundup.psfhosted.org> |
2021-09-12 11:20:58 | rhettinger | link | issue45155 messages |
2021-09-12 11:20:58 | rhettinger | create | |
|