From: Charles Oliver Nutter Date: 2008-12-19T12:05:45+09:00 Subject: [ruby-core:20681] Re: [Feature #905] Add String.new(fixnum) to preallocate large buffer Dave Thomas wrote: > (presumably n is in bytes, not characters) Yes, I'm thinking bytes myself. Presumably you either want just a byte buffer or you know how many bytes you need to allocate for the character encoding you intend.