This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients PedanticHacker, Stefan Pochmann, mark.dickinson, mcognetta, rhettinger, serhiy.storchaka, tim.peters
Date 2021-12-28.22:08:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:15tim.peterssetrecipients: + tim.peters, rhettinger, mark.dickinson, serhiy.storchaka, PedanticHacker, mcognetta, Stefan Pochmann
2021-12-28 22:08:15tim.peterssetmessageid: <>
2021-12-28 22:08:15tim.peterslinkissue37295 messages
2021-12-28 22:08:15tim.peterscreate