Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Great article, wasn't there a bit fuzz about the Data class being slower than OpenStruct in terms of performance?


The 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-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: