Conclusion : 

the performance of the “+=” operator was actually better in Internet Explorer 7 than pushing fragments into an array and joining them.

<IE7에서 문자열 조작은 Array 방식보다 "+=" 연산자가 효율이 더 좋다>


Sample : 

foreach(xmlElement in allXmlElements) {
  var jsonObject = {};
  jsonObject["firstName"] = xmlElement.getValueOf("firstName");
  jsonObject["lastName"] = xmlElement.getValueOf("lastName");
  ...
  processObject(jsonObject)
}

And the pseudo code for JSON:

var allJsonObjects = eval(jsonObjectsAsString);
foreach(jsonObject in allJsonObjects) {
  processObject(jsonObject);
}

processObject itself is simply concatenating the individual properties of the JSON Object to a global string variable:

globalString += jsonObject.firstName + " " + jsonObject.lastName + ...


번호 제목 글쓴이 날짜 조회 수
226 각 브라우저 별 User Agent 정보 황제낙엽 2011.02.22 1347
225 CORS(Cross-Origin Resource Sharing) - 4 file 황제낙엽 2017.03.07 1279
224 자바스크립트의 쉬프트 연산자 (Shift Operator) 와 음수 (Negative) 이야기 황제낙엽 2012.05.31 1176
223 iframe auto resize (cross browsing) 황제낙엽 2011.05.13 1135
222 Javascript CORS/XSS 극복하는(피하는) 방법 file 황제낙엽 2017.07.31 1091
221 [JavaScript Tutorials] Introducing the closure (해석중) 황제낙엽 2009.04.10 1082
220 Memory leak 및 성능 측정 도구 file 황제낙엽 2011.11.23 1062
219 입력받은 날짜와 현재 날짜와의 비교 함수 황제낙엽 2019.08.02 997
218 JavaScript Reserved Words 황제낙엽 2011.11.28 942
217 SelectBox 밑에 CheckBox가 포함된 리스트 만들기 file 황제낙엽 2007.01.16 931
216 Javascript 를 사용하여 Binary File 읽기 황제낙엽 2010.09.29 922
215 현재 document 의 host 와 port 를 얻는 방법 황제낙엽 2023.10.03 906
214 JavaScript Touch and Gesture Events iPhone and Android 황제낙엽 2012.04.12 890
213 url encode & decode 황제낙엽 2011.10.30 867
212 Javascript ArrayBuffer ? Binary handling in javascript 황제낙엽 2012.03.19 863
211 Defining classes and inheritance (클래스 정의와 상속) 황제낙엽 2011.03.24 840
210 JavaScript Array.push Performance 황제낙엽 2011.11.21 837
» String Performance: Getting Good Performance from Internet Explorer (IE7) 황제낙엽 2011.11.24 824
208 call() and apply() methods in Javascript 황제낙엽 2011.10.07 819
207 자바스크립트로 서버의 XML파일을 접근 (실패했슴) 황제낙엽 2005.12.11 818