def _get_rho(self, w):
        # fast path
        if w > self.big:
            return 1
        if w > self.big2:
            return 2
        return len(self.bitcount_arr) - bisect_right(self.bitcount_arr, w)
dataset/ETHPy150Open douban/dpark/dpark/hyperloglog.py/HyperLogLog._get_rho/original