# Type-instability because of @threads boxing variables

**URL:** <https://discourse.julialang.org/t/type-instability-because-of-threads-boxing-variables/78395>\
**Category:** Performance\
**Tags:** parallel\
**Created:** [March 24, 2022, 2:17pm UTC](https://discourse.julialang.org/t/type-instability-because-of-threads-boxing-variables/78395 "2022-03-24T14:17:45Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [March 24, 2022, 7:14pm UTC](https://discourse.julialang.org/t/type-instability-because-of-threads-boxing-variables/78395/11 "2022-03-24T19:14:03Z")

</div>

Actually, for the moment in any minimal example I try, I get 85 or 86 allocations, 71kb, which would be fine. The build up of allocations I’m seeing in my actual example are not easy to reproduce. I have to sort out what is causing that.

---

_[View the full topic](https://discourse.julialang.org/t/type-instability-because-of-threads-boxing-variables/78395)._
