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.
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!
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