# Help understanding allocation on scalar function and possible ways to avoid it

**URL:** <https://discourse.julialang.org/t/help-understanding-allocation-on-scalar-function-and-possible-ways-to-avoid-it/7614>\
**Category:** Performance\
**Created:** [December 7, 2017, 8:54pm UTC](https://discourse.julialang.org/t/help-understanding-allocation-on-scalar-function-and-possible-ways-to-avoid-it/7614 "2017-12-07T20:54:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [December 7, 2017, 9:20pm UTC](https://discourse.julialang.org/t/help-understanding-allocation-on-scalar-function-and-possible-ways-to-avoid-it/7614/3 "2017-12-07T21:20:06Z")

</div>

[https://discourse.julialang.org/t/allocations-in-large-function/7559/2?u=kristoffer.carlsson](https://discourse.julialang.org/t/allocations-in-large-function/7559/2)

---

_[View the full topic](https://discourse.julialang.org/t/help-understanding-allocation-on-scalar-function-and-possible-ways-to-avoid-it/7614)._
