Schedule

Aaron Patterson
Aaron Patterson
  • @tenderlove

Aaron is on the Ruby core team, the Rails core team, and works as a fully time Ruby committer at Shopify.

Speeding up Class#new

Many Ruby developers like to initialize new objects, so let's take a dive into Ruby object initialization! What makes creating an object slow? Can we use Ruby to speed it up? In this talk, we will examine the internals of the Class#new method, explore the trade-offs between Ruby and C method calls, and experiment with a Ruby implementation of Class#new. Additionally, we will discuss strategies for speeding up Ruby method calls, such as inline caches, while also considering the drawbacks of moving from C to Ruby.