From: Martin Duerst Date: 2008-12-19T17:02:53+09:00 Subject: [ruby-core:20690] Re: [Feature #905] Add String.new(fixnum) to preallocate large buffer At 09:08 08/12/19, Brian Ford wrote: >Something like "ab" * 5 then becomes String.pattern("ab".size * 5, "ab"). I'm at a total loss to see why String.pattern("ab".size * 5, "ab") should be in any way better than "ab" * 5 but maybe that's just me. Can somebody explain? Regards, Martin. #-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University #-#-# http://www.sw.it.aoyama.ac.jp mailto:duerst@it.aoyama.ac.jp