RubyConf 2022: Don't @ me! Faster Instance Variables with Object Shapes by Aaron Patterson

preview_player
Показать описание
Instance variables are a popular feature of the Ruby programming language, and many people enjoy using them. They are so popular that the Ruby core team has done lots of work to speed them up. But we can do even better to speed them up by using a technique called "Object Shapes". In this presentation we'll learn about what object shapes are, how they are implemented, how how they can be used to speed up getting and setting instance variables. We'll make sure to square up Ruby instance variable implementation details so that you can become a more well rounded developer!
Рекомендации по теме
Комментарии
Автор

Aaron always comes correct. Such a great person to have working on Ruby and Rails core teams.

CardCollectorKing
Автор

nicely and accurately explained. well done

developerfoe
Автор

The rocking from side to side was distracting. Very good understanding of the tree structure it uses for lookups. Wish he put usage of this a little more front and center. I'm guessing no boilerplate code is needed to make this work, just try to set your instance variables in the same order across classes and it makes the program more efficient? What about ramifications to attr_reader?

WinstonCodesOn