Building a Better OpenStruct - RubyConf 2016
OpenStruct provides a sweet API for data objects, but its performance is problematic. Can we build it better?
Video
Slides
About this talk
An updated version of the earlier talk from WindyCityRails 2016.
OpenStruct, part of Ruby’s standard library, is prized for its beautiful API. It provides dynamic data objects with automatically generated getters and setters. Unfortunately, OpenStruct also carries a hefty performance penalty.
Luckily, Rubyists have recently improved OpenStruct performance and provided some alternatives. We’ll study their approaches, learning to take advantage of the tools in our ecosystem while advancing the state of our community.
Sometimes, we can have our cake and eat it too. But it takes creativity, hard work, and willingness to question why things are the way they are.