Speeding up Class#new
Aaron Patterson
• Matsuyama, Ehime, Japan
• Japanese •
Talk
Date: April 17, 2025
Published: May 27, 2025
Announced: unknown
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.
https://rubykaigi.org/2025/presentations/tenderlove.html
RubyKaigi 2025