<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Optimization on Luke Wassink</title><link>http://lukewassink.com/tags/optimization/</link><description>Recent content in Optimization on Luke Wassink</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 03 Sep 2026 16:58:27 -0500</lastBuildDate><atom:link href="http://lukewassink.com/tags/optimization/index.xml" rel="self" type="application/rss+xml"/><item><title>Matrix Multiplication Optimization</title><link>http://lukewassink.com/posts/matrix-multiplication-optimization/</link><pubDate>Thu, 03 Sep 2026 16:58:27 -0500</pubDate><guid>http://lukewassink.com/posts/matrix-multiplication-optimization/</guid><description>&lt;h1 id="optimizing-matrix-multiplication"&gt;&#10; Optimizing Matrix Multiplication&#10; &lt;a class="heading-link" href="#optimizing-matrix-multiplication"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h1&gt;&#10;&lt;p&gt;Matrix multiplication is a great test case to understand performance&#10;optimization. The underlying algorithm is fairly simple, and it benefits&#10;significantly from some classic optimizations like:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;reducing array access&lt;/li&gt;&#10;&lt;li&gt;sequential memory access&lt;/li&gt;&#10;&lt;li&gt;cache locality&lt;/li&gt;&#10;&lt;li&gt;parallelization&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;There are also fancy algorithms that reduce the asymptotic complexity, but they&#10;are so complex they usually only show benefits for very large matrices, if at&#10;all. In any case, our plan will be to use the traditional algorithm for matrix&#10;multiplication and explore the benefits we can get from other changes like: how&#10;we store the matrices, what order we do the computations in, and running parts&#10;of the computation in parallel.&lt;/p&gt;</description></item></channel></rss>