in reply to How to do popcount (aka Hamming weight) in Perl (popcount References)

> unpack('%32b*'

so Perl has already a specialized command for this! (cool)

but why do you need

> pack('Q'

then?

If it's some kind of normalization, why do you need to benchmark it too instead of keeping the data in that format?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: How to do popcount (aka Hamming weight) in Perl