Message328728
random.sample currently uses either a Fisher-Yates shuffle, or rejection sampling, to achieve sampling without replacement. I propose using reservoir sampling or "cardchoose"; these are similar performance or sometimes faster, and don't need to allocate anything except the list used for the results. |
|
Date |
User |
Action |
Args |
2018-10-28 19:00:35 | ciphergoth | set | recipients:
+ ciphergoth |
2018-10-28 19:00:35 | ciphergoth | set | messageid: <1540753235.51.0.788709270274.issue35094@psf.upfronthosting.co.za> |
2018-10-28 19:00:35 | ciphergoth | link | issue35094 messages |
2018-10-28 19:00:35 | ciphergoth | create | |
|