# Performance tips on turning arrays into tuples

**URL:** <https://discourse.julialang.org/t/performance-tips-on-turning-arrays-into-tuples/55586>\
**Category:** New to Julia\
**Created:** [February 18, 2021, 11:35pm UTC](https://discourse.julialang.org/t/performance-tips-on-turning-arrays-into-tuples/55586 "2021-02-18T23:35:19Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [February 19, 2021, 7:40pm UTC](https://discourse.julialang.org/t/performance-tips-on-turning-arrays-into-tuples/55586/12 "2021-02-19T19:40:52Z")

</div>

Your problem seems closely related to

> [@Speeding Up Function with ::Function and ::Vararg input](https://discourse.julialang.org/t/speeding-up-function-with-function-and-vararg-input/55551):
>
> I need help understanding how/if I can speed up a function that has a ::Function argument and a ::Vararg argument. I have several functions that do almost the same thing. They each receive a few vector arguments, calculate some new vectors of the same size, then do some nested while looping to set the values of an output array. The looping part is almost identical across the different functions. The only difference is the function used to set the value of the output array inside the loops. So, …

I may misunderstand this, but the trick with the let block pointed out at the end of this thread may apply to your case as well.

---

_[View the full topic](https://discourse.julialang.org/t/performance-tips-on-turning-arrays-into-tuples/55586)._
