File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ the number of items contained in the stream is unknown.
11
11
12
12
This has some advantages over other sampling procedures:
13
13
14
- - If the iterable is lazy, the memory required grows in relation to the size of the sample, instead of the all population.
15
- - The sample collected is a random sample of the portion of the stream seen thus far at any point of the sampling process.
14
+ - If the iterable is lazy, the memory required is a small constant or grows in relation to the size of the sample,
15
+ instead of the all population.
16
+ - With reservoir methods, the sample collected is a random sample of the portion of the stream seen thus far at any
17
+ point of the sampling process.
16
18
- In some cases, sampling with the techniques implemented in this library can bring considerable performance gains, since
17
19
the population of items doesn't need to be previously stored in memory.
18
20
You can’t perform that action at this time.
0 commit comments