Indexing

pchero on June 29th, 2015

for 구문 사용시, 인덱싱하는 order 에 따라, 실행시간에 차이가 발생한다는 글을 보았다(참조: http://process3.blog.me/20030421397) 정말로 그럴까? 한번 확인해 보았다. 결론은? 확실한 차이가 있었다. 이유를 확인해보니, 메모리 캐시와 관련된 내용이었다.   — Program 1 #include <stdio.h> #define MAX_CNT 100 int main(int argc, char** argv) {     int i, j, k;     int test_data[MAX_CNT][MAX_CNT][MAX_CNT];     […]

Continue reading about memory indexing differences