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!

Why attr_accessor is 3x faster than getters and setters

Ruby has 11 different method types under the hood. This post walks through the code that implements their behavior and points out some of the very different performance characteristics you’ll encounter when writing Ruby.

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