Why is it not a good idea to dynamically create a lot of symbols in ruby (for versions before 2.2)?
Symbols are like strings but they are immutable – they can’t be modified. They are only put into memory once, making them very efficient to use for things like keys in hashes but they stay in memory until the program exits. This makes them a memory hog if you misuse them. If you dynamically create … Read more