From: Yusuke ENDOH Date: 2010-03-04T21:26:20+09:00 Subject: [ruby-core:28469] Re: [Feature #905] Add String.new(fixnum) to preallocate large buffer Hi, 2010/3/4 caleb clausen : > Pre-sized buffers are a well-known performance win on other systems, so why not for ruby as well? Indeed, it will bring speed up to Ruby, but if the speed up is negligibly-small, it is not only actually useless but also bad for code maintenance. If we confirm the performance up is significant and a patch is present, we'll be strongly encouraged to discuss the feature actively and to import the patch. I have forgotten another matter. I also wonder how many case we can expect a precise length that ERB will generate. If we cannot in many cases, the feature may be still useless. Well, it may be good only if the feature can be used in Rails... -- Yusuke ENDOH