Joel VanderWerf wrote:
> show_vmsize # 8712
> 
> # ruby apparently does not share storage for strings derived
> # from the same symbol:
> 
> strs1 = (0..10_000).map do
>   sym.to_s
> end
> 
> show_vmsize # 18488
> 
> # ruby does share storage for string ops:
> 
> strs2 = (0..10_000).map do
>   s[0..-1]
> end

Hmm, we could use that property of strings...

   class Symbol
     alias _to_s to_s
     def to_s
       (@str || @str = _to_s)[0..-1]
     end
   end

Daniel