# The state of loop optimization in Julia

**URL:** https://discourse.julialang.org/t/the-state-of-loop-optimization-in-julia/102711
**Category:** Performance
**Created:** [August 11, 2023, 10:20am UTC](https://discourse.julialang.org/t/the-state-of-loop-optimization-in-julia/102711 "2023-08-11T10:20:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tarny\_GG\_Channie](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)
#### Post date: [August 11, 2023, 10:20am UTC](https://discourse.julialang.org/t/the-state-of-loop-optimization-in-julia/102711/1 "2023-08-11T10:20:52Z")

</div>

We have loop vectorization which optimizes a single, highly restricted loop, then we will have loopmodel with less restriction but no multithreading. Then, there is a “future work” for loopvectorization. Naturally, one would beg to wonder to combine all the advantages of the loop libraries. Then, where do we go from here? Beat C/C++ at this and Julia will be the first language to fully optimize loops.

Where is it now?

---

<div class="post-metadata">

### Author: ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)
#### Post date: [August 11, 2023, 10:24am UTC](https://discourse.julialang.org/t/the-state-of-loop-optimization-in-julia/102711/2 "2023-08-11T10:24:49Z")

</div>

> [@Tarny\_GG\_Channie](#):
>
> Julia will be the first language to fully optimize loops.

Bold claim.  
I remember seeing what intel’s fortran compiler (`ifort`), or maybe it was Cray’s fortran compiler?) was doing back in 2014.
