Roaring Bitmaps are a high-performance data structure used by companies like YouTube and Microsoft to run fast set intersection queries over hundreds of millions of records. By compressing sequential integers into ranges, Roaring Bitmaps can perform intersections in ~99 microseconds compared to ~3 milliseconds for HashSets and ~38 seconds for plain lists. A C# demo using the Roaring.NET NuGet package shows all three approaches side by side, with the Roaring Bitmap being orders of magnitude faster for large sequential datasets.
•15m watch time
Sort: