stream-lib icon indicating copy to clipboard operation
stream-lib copied to clipboard

CountMinSketch with Int type in the internal table

Open ajtkulov opened this issue 5 years ago • 0 comments

The current implementation has Long type for the internal table. For a lot of real use cases, we need only Int (in general it would be great to have a generic solution, like long/int/short(?)).

For instance, I have 50M objects. It's impossible to have a value > 50M in the internal table. So, Int value is enough, in this case, Long type is a waste (in 2 times more memory consumption in comparison with Int type).

ajtkulov avatar Oct 17 '19 10:10 ajtkulov