Menu

1 / 2

Redis 8.12-rc1's roaring bitmap type shrinks a sparse bitmap from 24MB to 239KB

DEV Community: redis·Alex Georgiev·4 days ago
#zrdOAClW
#devtoredis#devto#dev#redis#bitmap
Reading 0:00
15s threshold

Redis 8.12-rc1 folds a side project called redis-roaring into core. It gives bitmaps a second, opt-in internal representation based on Roaring Bitmaps, and a new command, BITRANGEINTARRAY , that reads the set-bit positions straight out of it. The release notes describe this as lowering memory use and speeding up bitmap operations. I wanted to know what that actually means for a bitmap that looks like something I'd really store, not a synthetic all-ones or all-zeros string.

There's no official Docker image for 8.12-rc1 yet, so I built it from the tagged source inside a throwaway container (the commands are in "Run it yourself" below).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.