From: Thomas Enebo Date: 2008-12-16T03:10:19+09:00 Subject: [ruby-core:20578] [Feature #889] erb.rb should use Array and << for eoutvar and not String and concat Feature #889: erb.rb should use Array and << for eoutvar and not String and concat http://redmine.ruby-lang.org/issues/show/889 Author: Thomas Enebo Status: Open, Priority: Normal Repeated String concatenation is not as fast or efficient as an array.join('') on a list of strings since the array can know at join time how big the result string should be. This makes a decent perf difference and is quite a bit gentler on memory allocation. I attached a patch. This appears to be applicable on all versions of Ruby. ---------------------------------------- http://redmine.ruby-lang.org