When not to use to_sym in Ruby?
问题 I have a large dataset from an analytics provider. It arrives in JSON and I parse it into a hash, but due to the size of the set I'm ballooning to over a gig in memory usage. Almost everything starts as strings (a few values are numerical), and while of course the keys are duplicated many times, many of the values are repeated as well. So I was thinking, why not symbolize all the (non-numerical) values, as well? I've found some discusion of potential problems, but I figure it would be nice to