Tom Sawyer <transami / transami.net> writes:

>> "junk#{x}morejunk" is much faster then "junk" << x << "morejunk"
>
> oh, FYI, both of these are faster then "junk" + x + "morejunk"

Right, this isn't too surprising since the number of extra
intermediate objects created is vastly less with the version using
string interpolation.

In any case, the collect & join method makes it clearer (to me) what
is actually going on.

-- 
Josh Huber