Posts tagged “count-min-sketch”
-
How do you find the top 10 among billions of events?
Counting every key exactly took 58-149 MiB for 5 million keys. A count-min sketch with a small heap found the true top 10 in 2 MiB; Space-Saving did it in 62 KiB. With too few counters on flatter traffic, Space-Saving found only 2 of the 10. Measured, and when each one is safe.