RubyConf Mini 2022: Making .is_a? Fast by John Hawthorn

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=zcKbWXzopCU



Duration: 27:16
62 views
8


Until Ruby 3.2 the `is_a?` method can be a surprising performance bottleneck. It be called directly or through its various synonyms like case statements, rescue statements, protected methods, `Module#===` and more! Recently `is_a?` and its various flavours have been optimized and it's now faster and runs in constant time. Join me in the journey of identifying it as a bottleneck in production, implementing the optimization, squashing bugs, and finally turning it into assembly language in YJIT.




Other Videos By Confreaks


2023-03-07RubyConf 2022: Pushing to master - adopting trunk based development by Dylan Blakemore
2023-03-07RubyConf 2022: Boutique machine generated gems by CJ Avilla
2023-03-07RubyConf 2022: Lightning Talks
2023-03-07RubyConf 2022: This Old App by Lori M Olson
2023-03-07RubyConf 2022: Ruby Central Panel
2023-03-01RubyConf Mini 2022: Teaching Ruby to Count by Joël Quenneville
2023-03-01RubyConf Mini 2022: A Brewer’s Guide to Filtering out Complexity and Churn by Fito von Zastrow
2023-03-01RubyConf Mini 2022: We Need Someone Technical on the Call by Brittany Martin
2023-03-01RubyConf Mini 2022: Functional programming for fun and profit!! by Jenny Shih
2023-03-01RubyConf Mini 2022: Here Be Dragons: The Hidden Gems of Tech Debt by Ernesto Tagwerker
2023-03-01RubyConf Mini 2022: Making .is_a? Fast by John Hawthorn
2023-03-01RubyConf Mini 2022: Solo: Building Successful Web Apps By Your Lonesome by Jeremy Smith
2023-03-01RubyConf Mini 2022: Podcast Panel
2023-03-01RubyConf Mini: How We Implemented Salary Transparency (And Why It Matters) by Hilary Stohs Krause
2023-03-01RubyConf Mini 2022: Looking Into Peephole Optimizations by Maple Ong
2023-03-01RubyConf Mini 2022: Knowing When To Walk Away by Lindsay Kelly
2023-03-01RubyConf Mini 2022: Start a Ruby Internship by Chelsea Kaufman and Adam Cuppy
2023-03-01RubyConf Mini 2022: Keynote by Rose Wiegley
2023-03-01RubyConf Mini 2022: Sponsor Panel
2023-03-01RubyConf Mini 2022: Crystal for Rubyists by Kirk Haines
2023-03-01RubyConfMini 2022: The Three-Encoding Problem by Kevin Menard



Tags:
RubyConf
Ruby
Ruby Language
RubyConf Mini
Ruby On Rails