# Manually unroll operations with objects of tuple

**URL:** <https://discourse.julialang.org/t/manually-unroll-operations-with-objects-of-tuple/11604>\
**Category:** New to Julia\
**Tags:** question, metaprogramming, unrolling\
**Created:** [June 12, 2018, 12:02pm UTC](https://discourse.julialang.org/t/manually-unroll-operations-with-objects-of-tuple/11604 "2018-06-12T12:02:05Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![foobar\_lv2](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Post date:** [June 13, 2018, 12:21pm UTC](https://discourse.julialang.org/t/manually-unroll-operations-with-objects-of-tuple/11604/22 "2018-06-13T12:21:56Z")

</div>

Try updating your `StaticArrays`. Some mixtures of versions between master and StaticArrays have very serious regressions (scalar-SVector broadcasts produced (nonstatic) Array results). Afterwards, `_normalize(x::SVector)= @fastmath x * ( one(eltype(x)) / sqrt(sum(x.*x)) )` runs nice enough (or` _normalize(x::SVector)=x/LinearAlgebra.vecnorm(x)`).

---

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [June 13, 2018, 12:27pm UTC](https://discourse.julialang.org/t/manually-unroll-operations-with-objects-of-tuple/11604/23 "2018-06-13T12:27:55Z")

</div>

Yeah the guys from `StaticArrays` just released a version last night that solves all of this. Updated now and its fast as lightning!

[Previous page](https://discourse.julialang.org/t/manually-unroll-operations-with-objects-of-tuple/11604.md?page=1)
