RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in