antirez/redis — Issue #318: Add population count command
Author: Seldaek
Created: 2012-01-27 23:44:21+00:00
State: open

Seeing as this is really easy and efficient in C, but can be pretty cumbersome or slow in higher level languages, I think it would be quite cool to have it native in redis: http://en.wikipedia.org/wiki/Hamming_weight#Language_support

The use case comes from http://blog.getspool.com/2011/11/29/fast-easy-realtime-metrics-using-redis-bitmaps/