According to the description of these functions in MQL5 Reference, they allow us to add up strings in a more space efficient (in terms of the occupied working memory) and faster way.
사실 문서에 일관성이 없습니다. 메모리 사용량에 대해서는 모르겠지만 더 빠르거나 그렇지 않은지에 대해서는 StringConcatenate ()가 StringAdd 및 +보다 훨씬 느립니다.
2013.04.11 19:09:48 teststring (EURUSD,M1) time for 'StringConcatenate(c,a,b)' = 1170 milliseconds, i = 1000000 2013.04.11 19:09:47 teststring (EURUSD,M1) time for 'StringAdd(a,b)' = 94 milliseconds, i = 1000000 2013.04.11 19:09:47 teststring (EURUSD,M1) time for 'c = a + b' = 265 milliseconds, i = 1000000
...개인적으로 회선 길이 제한에 대한 질문이 궁금했습니다....
According to the description of these functions in MQL5 Reference, they allow us to add up strings in a more space efficient (in terms of the occupied working memory) and faster way.
사실 문서에 일관성이 없습니다. 메모리 사용량에 대해서는 모르겠지만 더 빠르거나 그렇지 않은지에 대해서는 StringConcatenate ()가 StringAdd 및 +보다 훨씬 느립니다.
2013.04.11 19:09:48 teststring (EURUSD,M1) time for 'StringConcatenate(c,a,b)' = 1170 milliseconds, i = 1000000
2013.04.11 19:09:47 teststring (EURUSD,M1) time for 'StringAdd(a,b)' = 94 milliseconds, i = 1000000
2013.04.11 19:09:47 teststring (EURUSD,M1) time for 'c = a + b' = 265 milliseconds, i = 1000000
좋은 기사, 모든 초보자를위한 필수품.
우리를 덜 무지하게 만들기 위해 당신을 지치게하는 것이 좋습니다. 당신의 일에 감사드립니다.
문자열에 숫자 그룹 구분 기호를 추가합니다:
//---
결과:
문자열에 숫자 그룹 구분 기호를 추가합니다:
좀 복잡하네요.
최적화를 시도해 보시겠습니까?
대단하네요! 그리고 4배 더 빠릅니다:
//---