bitset primer
In my previous blog post I wrote about why curl’s bitsets and some people asked to explain a bit more how they work and why I like them so much. So here is a introduction for someone unfamiliar with them.
Revisiting the Problem
Many applications have a few main types of data they need to deal with, but many instances of them. Let’s just call them “Things”. A “thing” has several properties the application needs to manage and often it needs to operate on “all things with prop1 == x”. The question is how you design this for working efficiently on thousands of “Things”.