# Parallelising a for loop

**URL:** <https://discourse.julialang.org/t/parallelising-a-for-loop/31313>\
**Category:** New to Julia\
**Created:** [November 20, 2019, 12:49pm UTC](https://discourse.julialang.org/t/parallelising-a-for-loop/31313 "2019-11-20T12:49:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [November 20, 2019, 1:05pm UTC](https://discourse.julialang.org/t/parallelising-a-for-loop/31313/2 "2019-11-20T13:05:14Z")

</div>

The inner loop could potentially see some speedup with threading. Threading does not make a huge difference for code that allocates a lot of memory. Try making use of the insight gained from your other question and see if you can apply it here (I think you can).

BTW, Q\*rand should probably call randn?

---

_[View the full topic](https://discourse.julialang.org/t/parallelising-a-for-loop/31313)._
