TL;DR - When creating a new object Struct and Data.define have the same performance. OpenStruct is very slow compared with them. The same is true for accessing attributes.
Collection
[
|
...
]
TL;DR - When creating a new object Struct and Data.define have the same performance. OpenStruct is very slow compared with them. The same is true for accessing attributes.