From: Marc Heiler Date: 2009-06-19T02:06:09+09:00 Subject: Re: String += vs << > But be careful, it could be possible indeed, object allocation in the > short living object pool could be way cheaper than copying into the > long living object pool. > But my benchmark was ridiculous I should have spotted the mistake. But this statement is in conflict with what the pickaxe said years ago about this - as far as I do remember it was said that << is faster than += Now you say that this is perhaps not the case. All I would like to to know is, if this is the case here: Is using += faster than << for string objects? And if it is not, how is your statement about "short living objects" vs "long living objects" meant to be understood? Perhaps I am a bit slow, but reading the posts above I got the impression that you claimed that += is faster than << -- Posted via http://www.ruby-forum.com/.