Tail recursive loops and closures

I don’t know much (anything) about compiler internals/inlining, but after reading the responses for a similar question Local functions and performance - #3 by vlaviron I had started using the first style in your post for writing my inner loop functions, and if the task at hand was otherwise something where I cared enough to write a microbenchmark for that could show a difference in allocations. :sweat_smile:

1 Like