# Improving performance elegantly - type stability

**URL:** <https://discourse.julialang.org/t/improving-performance-elegantly-type-stability/19568>\
**Category:** General Usage\
**Tags:** type-stability\
**Created:** [January 12, 2019, 7:51pm UTC](https://discourse.julialang.org/t/improving-performance-elegantly-type-stability/19568 "2019-01-12T19:51:00Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Seif\_Shebl](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Post date:** [January 13, 2019, 1:18pm UTC](https://discourse.julialang.org/t/improving-performance-elegantly-type-stability/19568/22 "2019-01-13T13:18:05Z")

</div>

I agree. I’m curious though, why `map` was able to vectorize correctly while loops weren’t?

[Previous page](https://discourse.julialang.org/t/improving-performance-elegantly-type-stability/19568.md?page=1)
