# Type stability while looping over Tuple

**URL:** <https://discourse.julialang.org/t/type-stability-while-looping-over-tuple/83272>\
**Category:** Performance\
**Tags:** type-stability\
**Created:** [June 23, 2022, 7:10pm UTC](https://discourse.julialang.org/t/type-stability-while-looping-over-tuple/83272 "2022-06-23T19:10:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![raminammour](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raminammour/32/13572_2.png) [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Post date:** [June 23, 2022, 7:41pm UTC](https://discourse.julialang.org/t/type-stability-while-looping-over-tuple/83272/4 "2022-06-23T19:41:40Z")

</div>

Maybe I am misunderstanding, but why can’t you wrap the inner loop in a function and use `@unroll` on that inner function? Maybe a MWE code closer to the structure you have can help…

Also this [thread](https://discourse.julialang.org/t/multiple-dispatch-with-more-than-4-methods-blocks-type-inference/49066) is useful for a similar discussion.

---

_[View the full topic](https://discourse.julialang.org/t/type-stability-while-looping-over-tuple/83272)._
