Message385846
Some points to note;
I first noticed this as an apparently 5x performance regression for randrange() between pypy and pypy3. This seemed pretty significant, but admittedly the difference is largely masked by other python overheads when comparing python2 and python3.
When I mentioned random() is faster, I meant that python2's implementation of randrange() that uses random() under the hood was noticeably faster than python3's randrange() that uses getrandbits() under the hood.
I know getrandbits() is significantly faster than randrange(), but randrange() doesn't have to be that bad.
However, I agree that changing repeatability is potentially a big issue. |
|
Date |
User |
Action |
Args |
2021-01-28 06:41:37 | abo | set | recipients:
+ abo, rhettinger, mark.dickinson |
2021-01-28 06:41:37 | abo | set | messageid: <1611816097.56.0.198466288688.issue43040@roundup.psfhosted.org> |
2021-01-28 06:41:37 | abo | link | issue43040 messages |
2021-01-28 06:41:37 | abo | create | |
|