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