Message409274
A timing confounder: I see that CPython's _Py_popcount32() only tries to use the relevant blazing fast hardware instruction if defined(__clang__) || defined(__GNUC__). On Windows, it's a long-winded bit-fiddling dance.
So which of xor-popcount and add-up-up-trailing-zero-counts is faster may well depend on platform. |
|
Date |
User |
Action |
Args |
2021-12-28 22:08:15 | tim.peters | set | recipients:
+ tim.peters, rhettinger, mark.dickinson, serhiy.storchaka, PedanticHacker, mcognetta, Stefan Pochmann |
2021-12-28 22:08:15 | tim.peters | set | messageid: <1640729295.15.0.809792925169.issue37295@roundup.psfhosted.org> |
2021-12-28 22:08:15 | tim.peters | link | issue37295 messages |
2021-12-28 22:08:15 | tim.peters | create | |
|