Speeding Up Class#new
Aaron Patterson • Cracow, Poland • Talk

Date: February 28, 2025
Published: March 17, 2025
Announced: November 26, 2024

Many Ruby developers like to initialize new objects, so let's take a dive into Ruby object initialization! What makes initializing 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.

Ruby Community Conference Winter Edition 2025

Explore all talks recorded at Ruby Community Conference Winter Edition 2025
Samuel Giddins
John Gallagher
Aaron Patterson
Chris Hasinski
Paweł Strzałkowski
Piotr Witek
Rosa Gutiérrez
Michał Łęcicki
+5