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 <1640729295.15.0.809792925169.issue37295@roundup.psfhosted.org>
In-reply-to
Content
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.
History
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: <1640729295.15.0.809792925169.issue37295@roundup.psfhosted.org>
2021-12-28 22:08:15tim.peterslinkissue37295 messages
2021-12-28 22:08:15tim.peterscreate