Well, maybe it has better performance. Not sure if performance is an issue here. I will take a look at #each_with_object({})