TL;DR: Databend introduces HybridBitmap to keep small sets lightweight and switch to RoaringTreemap only when needed. This reduces unnecessary deserialization and allocation, improving bitmap aggregation performance in small-bitmap-heavy workloads.