Presentations by Erik Michaels-Ober:
-
Rails Israel 2015 Conference, Tuesday, November 24, 2015, 09:25
The OpenStruct class was written by Matz in 1998 and has been part of the standard library since Ruby 1.2. The idea behind OpenStruct—a data structure that provides method access to arbitrary attributes—is broadly useful, for example, to interact with API responses or as a test double. However, use of metaprogramming to dynamically define attribute methods at runtime made OpenStruct slow.
I will describe how I was able to optimize OpenStruct to be 10X faster by defining attribute methods lazily. These changes will ship later this year in Ruby 2.3.
More Speakers at Rails Israel 2015
-
Julian Cheal
Senior Software DeveloperRed Hat -
Ben Lovell
Senior Software EngineerHM Treasury -
Raphael Fogel
Organiser of #DevconTLV & #RailsIsraelCode4WD -
Ivan Nemytchenko
Managing Partner7bits -
On Freund
VP Engineeringwe work -
Jason Smale
Director of Product StrategyZendesk -
Phil Nash
Developer EvangelistTwilio -
Sergio Gil
Backend EngineerSoundCloud -
Yaron Wittenstein
Software ArchitectSpot.IM -
Elle Meredith
Developerthoughtbot -
Andreas Tiefenthaler
Software EngineerContentful -
Rishi Jain
Senior Software EngineerJosh Software -
João M. D. Moura
Senior Software EngineerRide.com -
Daniel Lobato García
Senior Software EngineerRed Hat -
Hector Bustillos
Senior Software EngineerCrowd Interactive -
Boris Nadion
FounderAstrails -
Vladislav Shub
Chief ArchitectYotpo -
Max Rozenoer
Server DeveloperGett -
Ariel Caplan
Software EngineerVitals -
Caleb Thompson
Developerthoughtbot -
Amir Levy
Redis Labs