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 + ...


번호 제목 글쓴이 날짜 조회 수
146 외부 라이브러리 (.js) 의 바람직하지 않은 동적 로딩 (eval함수 이용) 황제낙엽 2012.01.18 3299
145 IFrames and cross-domain security file 황제낙엽 2012.01.13 1318
144 자바스크립트 숫자형 체크 함수 (isFinite() 함수 와 isNaN() 함수) 황제낙엽 2011.12.13 1267
143 char to hex string 황제낙엽 2011.11.29 1528
142 Understanding delete 황제낙엽 2011.11.28 1210
141 JScript Memory Leaks 황제낙엽 2011.11.28 1618
140 JavaScript Reserved Words 황제낙엽 2011.11.28 1697
139 Reference Count (순환참조) 황제낙엽 2011.11.24 1515
138 IE and Memory accumulation in Javascript (document.createElement()) file 황제낙엽 2011.11.24 2456
» String Performance: Getting Good Performance from Internet Explorer (IE7) 황제낙엽 2011.11.24 1561
136 Memory leak 및 성능 측정 도구 file 황제낙엽 2011.11.23 1834
135 JavaScript Array.push Performance 황제낙엽 2011.11.21 1629
134 CKEditor 3 JavaScript API Documentation 황제낙엽 2011.11.14 1423
133 다양한 WYSIWYG 에디터 황제낙엽 2011.11.13 1181
132 Faster JavaScript Memoization For Improved Application Performance 황제낙엽 2011.11.04 1515
131 Top 10 JavaScript Performance Tips+Android & iPhone Engine Testing 황제낙엽 2011.11.04 1296
130 url encode & decode 황제낙엽 2011.10.30 1583
129 페이지 스크롤 끝 확인 황제낙엽 2011.10.24 9256
128 call() and apply() methods in Javascript 황제낙엽 2011.10.07 1630
127 Function.apply and Function.call in JavaScript 황제낙엽 2011.10.07 1431