Python⇒Speed: Timesliced reservoir sampling: a new(?) algorithm for profilers
Imagine you are processing a stream of events, of unknown length. It could end in 3 seconds, it could run for 3 months; you simply don’t know. As a result, storing the whole stream...