# Improve the performance of multiplication of an arbitrary number of matrices

**URL:** <https://discourse.julialang.org/t/improve-the-performance-of-multiplication-of-an-arbitrary-number-of-matrices/10835>\
**Category:** Performance\
**Created:** [May 11, 2018, 5:01am UTC](https://discourse.julialang.org/t/improve-the-performance-of-multiplication-of-an-arbitrary-number-of-matrices/10835 "2018-05-11T05:01:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [May 11, 2018, 5:08am UTC](https://discourse.julialang.org/t/improve-the-performance-of-multiplication-of-an-arbitrary-number-of-matrices/10835/2 "2018-05-11T05:08:04Z")

</div>

1. You’re timing in global scope, so your results are not going to be informative. For a discussion of the same issue from earlier today, see: [How to assign real/imaginary part of complex array - #11 by rdeits](https://discourse.julialang.org/t/how-to-assign-real-imaginary-part-of-complex-array/10818/11)

2. You’ll get substantially better performance if you use [https://github.com/JuliaArrays/StaticArrays.jl](https://github.com/JuliaArrays/StaticArrays.jl) for your small fixed-size attrays.

---

_[View the full topic](https://discourse.julialang.org/t/improve-the-performance-of-multiplication-of-an-arbitrary-number-of-matrices/10835)._
