# Improving performance of a nested for loop

**URL:** <https://discourse.julialang.org/t/improving-performance-of-a-nested-for-loop/29705>\
**Category:** New to Julia\
**Tags:** performance, loops\
**Created:** [October 10, 2019, 1:07am UTC](https://discourse.julialang.org/t/improving-performance-of-a-nested-for-loop/29705 "2019-10-10T01:07:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jessecm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jessecm/32/25190_2.png) [@jessecm](https://discourse.julialang.org/u/jessecm)\
**Post date:** [October 10, 2019, 2:25am UTC](https://discourse.julialang.org/t/improving-performance-of-a-nested-for-loop/29705/10 "2019-10-10T02:25:26Z")

</div>

This final code brought things from not finishing after \> 1hr to finishing in about a second for a 132 x 533 matrix (on a laptop from 2012). I’m amazed.

---

_[View the full topic](https://discourse.julialang.org/t/improving-performance-of-a-nested-for-loop/29705)._
