# Question: Improve the speed of for loop

**URL:** <https://discourse.julialang.org/t/question-improve-the-speed-of-for-loop/97204>\
**Category:** Performance\
**Tags:** question\
**Created:** [April 7, 2023, 7:08am UTC](https://discourse.julialang.org/t/question-improve-the-speed-of-for-loop/97204 "2023-04-07T07:08:33Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![manu\_han](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_han/32/47520_2.png) [@manu\_han](https://discourse.julialang.org/u/manu_han)\
**Post date:** [April 12, 2023, 1:49am UTC](https://discourse.julialang.org/t/question-improve-the-speed-of-for-loop/97204/25 "2023-04-12T01:49:08Z")

</div>

Toy example I wrote is already inside function().  
Thus, As you reflect your comments, It become nested function.  
Allocation and memory is decreased a lot, but computational time is increased.

and @turbo make problem in my real code as follow:  
`LoopVectorization.check_args` on your inputs failed; running fallback `@inbounds @fastmath` loop instead.  
│ Use `warn_check_args=false`, e.g. `@turbo warn_check_args=false ...`, to disable this warning.

anyway, it is good tool and thank you for introduce it me:)

[Previous page](https://discourse.julialang.org/t/question-improve-the-speed-of-for-loop/97204.md?page=1)
