# Clustering using matrix decomp code performance tips

**URL:** <https://discourse.julialang.org/t/clustering-using-matrix-decomp-code-performance-tips/68838>\
**Category:** Performance\
**Tags:** sparse, loopvectorization\
**Created:** [September 27, 2021, 9:58pm UTC](https://discourse.julialang.org/t/clustering-using-matrix-decomp-code-performance-tips/68838 "2021-09-27T21:58:51Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [October 2, 2021, 7:05pm UTC](https://discourse.julialang.org/t/clustering-using-matrix-decomp-code-performance-tips/68838/6 "2021-10-02T19:05:18Z")

</div>

If you profile it you can see that most of the time is spent on the `sp_factor_ratio` and `mul!` functions. You can’t probably do much about `mul!`, so probably you want to invest in improving the first one:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/7/8791fa26ebf2823cf94d0598c0241a61c5e205c2.png)

That was built with the VSCode extension: [Julia VS Code extension version v0.17 released](https://discourse.julialang.org/t/julia-vs-code-extension-version-v0-17-released/42865)

---

_[View the full topic](https://discourse.julialang.org/t/clustering-using-matrix-decomp-code-performance-tips/68838)._
