From 78204511084a8695dd65f96e05e2aa41448216ad Mon Sep 17 00:00:00 2001 From: Immad Naseer Date: Tue, 16 Feb 2010 14:34:50 -0800 Subject: [PATCH] small string concatenation performance optimization --- droidgap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/droidgap b/droidgap index 86a7469c..c5edbfd7 100755 --- a/droidgap +++ b/droidgap @@ -78,8 +78,8 @@ class Build phonegapjs = IO.read('phonegap.js.base'); js.each do |script| next if script[0].chr == "." or script == "phonegap.js.base" - phonegapjs += IO.read(script) - phonegapjs += "\n\n" + phonegapjs << IO.read(script) + phonegapjs << "\n\n" end Dir.chdir("#{ @dir}") File.open("#{ @path }#{ @s }assets#{ @s }www#{ @s }phonegap.js", 'w') {|f| f.write(phonegapjs) }