# Parallel programming loops

**URL:** https://discourse.julialang.org/t/parallel-programming-loops/82284
**Category:** New to Julia
**Created:** [June 5, 2022, 8:54pm UTC](https://discourse.julialang.org/t/parallel-programming-loops/82284 "2022-06-05T20:54:25Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)
#### Post date: [June 6, 2022, 10:57pm UTC](https://discourse.julialang.org/t/parallel-programming-loops/82284/6 "2022-06-06T22:57:52Z")

</div>

Before trying to parallelize, please first try to optimize your code to figure out where the bottlenecks are. There are many different parallelization strategies (multiprocessing, multithreading, GPUs, clusters), and using any of them requires understanding and eliminating those bottlenecks. What’s the runtime of your code at the moment? What functions dominate the runtime? Have you read through and applied any relevant [performance tips](https://docs.julialang.org/en/v1/manual/performance-tips/)?

Separately, see this PSA on how to construct a minimal reproducible example for others to run: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

---

_[View the full topic](https://discourse.julialang.org/t/parallel-programming-loops/82284)._
