On 06.03.10 21:44, Yusuke ENDOH wrote:
> 2010/3/6 Kornelius Kalnbach <redmine / ruby-lang.org>:
>> Here's a patch that doesn't work. I don't know what I'm doing wrong here: RESIZE_CAPA seemed just right.
> Thank you for your writing a patch!
> It seems to work on my environment.  What made you think it does
> not work?
The fact that the memory taken by the Ruby process didn't change in top.
I requested a 200MB buffer, and the process was still at 2.8MB.

> Anyway, the overhead of concatenation seems not so big.  I doubt
> if it is the bottleneck.
That's my conclusion, too. But the JRuby team seems to have seen some
10% speedup:

  http://gist.github.com/323431 - without and with preset buffer

Maybe the question is, is it worth it?

[murphy]