From: Roger Pack Date: 2008-12-20T14:44:37+09:00 Subject: [ruby-core:20713] Re: [Feature #905] Add String.new(fixnum) to preallocate large buffer > Hard to do, since it has to be a hash on the callee side. Constructing the > hash could perhaps be delayed, in case the callee was a C function, but it > still has to be something. In comparison, new(1000) is almost free. I suppose a clever implementation could optimize that out. -=R