# Avoid allocating an anonymous function

**URL:** <https://discourse.julialang.org/t/avoid-allocating-an-anonymous-function/94689>\
**Category:** General Usage\
**Tags:** optimization\
**Created:** [February 15, 2023, 3:30pm UTC](https://discourse.julialang.org/t/avoid-allocating-an-anonymous-function/94689 "2023-02-15T15:30:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GHTaarn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghtaarn/32/216007_2.png) [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Post date:** [February 15, 2023, 4:13pm UTC](https://discourse.julialang.org/t/avoid-allocating-an-anonymous-function/94689/4 "2023-02-15T16:13:24Z")

</div>

Would you be able to simplify your code and still illustrate your problem? In item 5 in [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) this is suggested as one of the ways to make it easier for people to answer your question.

---

_[View the full topic](https://discourse.julialang.org/t/avoid-allocating-an-anonymous-function/94689)._
