D-H,appy

관리자 글쓰기
블로그 »

인코딩하는 것이 필요해서 코딩을 했다

output = output +
this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);

소스가 대략 이런 구조인데 문자열 연산이 a = a + b; 형태이다..

이렇게 하고 explorer6에서 돌리니까 시간이 엄~청 걸렸다.

파폭이나 익스8에서는 잘 됨...

왜이럴까 하다가 찾아보니까 문자열 연산때문에 그런것같음...

tempoutput = tempoutput +
tempkey.charAt(enc1) + tempkey.charAt(enc2) +
tempkey.charAt(enc3) + tempkey.charAt(enc4);
   
if(i%100==0){
    output = output + tempoutput;
    tempoutput = '';
}

이런식으로 나눠서 처리하니까 훨씬 빨라졌음..;

뭐니 익스6..

익스6을 그냥 쓰지 말자...

2010/05/17 10:03 2010/05/17 10:03

(go to top)