(no title)
kingfishr | 13 years ago
(Intuitively, a sliding window seems very hard/impossible -- how do you discard old events without keeping a complete record?)
kingfishr | 13 years ago
(Intuitively, a sliding window seems very hard/impossible -- how do you discard old events without keeping a complete record?)
teraflop|13 years ago
But for all but the most extreme cases, it's sufficient to just keep all the values in memory until they fall out of your window. Even if you're getting 1000 requests/second, that's still only 300,000 values that you have to store.
bmizerany|13 years ago
Edit:
I do agree that if you're working with datasets that fit in memory, you're probably better off keeping all the samples to find your percentile and not using this package. In fact, perks will not compress for datasets under 500 values.
jcrites|13 years ago