News for hackers. Stuff that matters.
Re:I hate LaTeX, I love LaTeX by gus_massa on Tuesday May 24, 2022 @02:24PM (#31495743)
Another example is the order in which you access memory. To multiply two matrices, in one you move by row and in the other you move by columns. One makes the cache happy and the other unhappy, so it's faster to transpose one of them (the correct one, I never remember) and them "multiply" them. We notice this in Fortran with -O2, but the difference disappears in Fortran with -O3, so the compiler is doing some magic.

There are no comments on this comment yet.