RubyFlow The Ruby and Rails community linklog

Why blocks make Ruby methods 439% slower

You’ve probably never thought about the performance differences between blocks and yielding, but it’s dramatic. This article explains why blocks are so much slower by going directly to the MRI source code.

Comments

Good article! Thanks!

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