Message266054
The only case I know that would benefit is generating random data for tests. On my computer generating 2*28 bits with getrandbits() takes 2 sec (including 1 sec for converting from bytes to int), plus 1.4 sec for converting from int to bytes. Special API would speed up generating random bytes by 3.4 times. I would request for this functionality, but I don't want to clutter the API.
As for getrandbits.diff, I think that we should follow the principle "we're all consenting adults here". |
|
Date |
User |
Action |
Args |
2016-05-22 06:29:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, paul.moore, mark.dickinson, tim.golden, ideasman42, zach.ware, steve.dower, Steven.Barker |
2016-05-22 06:29:18 | serhiy.storchaka | set | messageid: <1463898558.26.0.0135914630769.issue27072@psf.upfronthosting.co.za> |
2016-05-22 06:29:18 | serhiy.storchaka | link | issue27072 messages |
2016-05-22 06:29:18 | serhiy.storchaka | create | |
|