3 ms·
Great article, wasn't there a bit fuzz about the Data class being slower than OpenStruct in terms of performance?
by Alifatisk 2y ago
Great article, wasn't there a bit fuzz about the Data class being slower than OpenStruct in terms of performance?
- Lio 2y agoThe answer is, like most things, not simple; it depends on what you are doing and the version of Ruby you are using. I just found this[1] great article by Miko Dagatan with loads of benchmarks for Ruby 3.4.2 that goes into a bit of depth. 1. https://reinteractive.com/articles/ruby-performance-structs-classes https://reinteractive.com/articles/ruby-performance-structs-...