↧
Answer by bokan for Why is my program slow when looping over exactly 8192...
The following tests have been done with Visual C++ compiler as it is used by the default Qt Creator install (I guess with no optimization flag). When using GCC, there is no big difference between...
View ArticleAnswer by Mysticial for Why is my program slow when looping over exactly 8192...
The difference is caused by the same super-alignment issue from the following related questions: Why is transposing a matrix of 512x512 much slower than transposing a matrix of 513x513? Matrix...
View ArticleWhy is my program slow when looping over exactly 8192 elements?
Here is the extract from the program in question. The matrix img[][] has the size SIZE×SIZE, and is initialized at: img[j][i] = 2 * j + i Then, you make a matrix res[][], and each field in here is...
View Article