# Speeding up force calculations and mutable structs

**URL:** <https://discourse.julialang.org/t/speeding-up-force-calculations-and-mutable-structs/44228>\
**Category:** Performance\
**Created:** [August 4, 2020, 3:41am UTC](https://discourse.julialang.org/t/speeding-up-force-calculations-and-mutable-structs/44228 "2020-08-04T03:41:39Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [August 5, 2020, 3:45pm UTC](https://discourse.julialang.org/t/speeding-up-force-calculations-and-mutable-structs/44228/21 "2020-08-05T15:45:07Z")

</div>

They will be localized in the thread scope if you define them inside the loop. That’s true of any loop variables, not specific to threading 🙂

[Previous page](https://discourse.julialang.org/t/speeding-up-force-calculations-and-mutable-structs/44228.md?page=1)
