Is Ruby 2.3 Faster? Nested Iterator Performance
In Ruby <= 2.2 iterators like each_with_index, all?, any?, and others are creating extra Ruby objects each time you call them. When these are used inside the loop, they potentially allocate thousands of extra objects, adding more work for the garbage collector. That results in extra GC cycles that, in turn, slow down your application. Find out whether Ruby 2.3 improves this.
Post a comment