ferrous26/hotcocoa — comment on commit 8dd4fc52705cbc88c9e03b3526f3ef4a7f3bbf8d
File: lib/hotcocoa/delegate_builder.rb line 112
By ferrous26:

I think at some point in the past, I changed most of the mappings to use symbols where possible in order to save on having to `#dup` strings since allocations are expensive in MacRuby.

Calling `#to_s` in all cases throws away the performance gain and then some. Given delegate builder performance as it is now, I'd rather undo my previous change and not have call `#to_s`.

The third option is to only call `#to_s` in the one case where it is needed, which is when `if (dot = parameter.index('.'))` is not true.