From: Roger Pack Date: 2009-11-29T13:40:59+09:00 Subject: [ruby-core:26936] Re: Caching #to_s for immutables (and a possible future for constant-folding) > �It reduces the number of #to_s Strings created during the MRI test suite > for NilClass, TrueClass, FalseClass, Symbol and Float objects by 1890 > Strings. Sounds like it has potential, especially for long-lived constants and for symbols, which themselves are never collected anyway. Perhaps adding an Object#to_s_nonfrozen would be convenient? Also do you have any benchmarks showing improvement? Does it break rails? -r