Embed presentation
Download to read offline



This document discusses two C code implementations of nested loops to calculate c(J) = c(J) + a(I, J)*b(J), compares their performance, and draws a conclusion. Code A has the outer loop iterating over I and the inner over J, while Code B is the opposite. The author implemented both codes, used a memory profiler, and found Code A was almost twice as fast as Code B. They conclude Code A is the faster of the two implementations.


