compressed bit-sets http://roaringbitmap.org/ https://github.com/RoaringBitmap/RoaringFormatSpec/ https://arxiv.org/pdf/1603.06549.pdf maybe interesting to use in some way