23% faster Nil#try by schneems · Pull Request #34068 · rails/rails
This PR speeds up Nil#try by avoiding an allocation when only one argument is passed: class FooNew def try(method_name = nil, *args) nil end end class FooOld def try(*args) nil end...