Skip defined instruction in NODE_OP_ASGN_OR with ivar by jhawthorn · Pull Request #3904 · ruby/ruby
Alternate title: make memoization 50% faster 😅 Previously we would emit instructions to check if an ivar was defined when using @foo ||= 123, which made it slower than @foo || (@foo = 123) when...
github.com