Sha256: 90dcef01c87ccd84c2db8ea6d3d51e87df7f842ea4de374d2c7d75214031dd4f
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
### 3/16/17 - Tweak the two benchmark file and made it work - This time around, I am dynamically creating new arrays and counting the number of iterations before it blows up. And it's clear that the `each!` can complete more iteration before it uses all the memory - Changed `each_slice!` implementation to avoid using `slice!`. The execution time comp looks good (seems even faster than the native `each_slice`). And the memory usage comp looks very good too! ### 3/14/17 - Testing benchmark in containerized environment to simulate limited allocated memory. - `each!` seems to be working fine. I can see gradual memory release in docker stat even not by a large margin. - Next thing to test would be creating more objects within the iteration to use up more memory. Given that with 4MB allocation, the current [./benchmark/each.rb](benchmark/each.rb) and [./benchmark/each_bang.rb](benchmark/each_bang.rb) is running at the edge of using up all memory, creating more objects supposedly would kill the process using `each` while `each!` should survive. - `each_slice!` implementation is very slow. Possibly because `slice!` is O(n)?
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hyper_iterator-0.3.0 | UPDATE.md |
hyper_iterator-0.2.2 | UPDATE.md |
hyper_iterator-0.2.1 | UPDATE.md |
hyper_iterator-0.2.0 | UPDATE.md |