# Meta-programming an if-else statement of user-defined length

**URL:** <https://discourse.julialang.org/t/meta-programming-an-if-else-statement-of-user-defined-length/53525>\
**Category:** Performance\
**Tags:** question, package\
**Created:** [January 18, 2021, 8:47am UTC](https://discourse.julialang.org/t/meta-programming-an-if-else-statement-of-user-defined-length/53525 "2021-01-18T08:47:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [January 18, 2021, 9:20am UTC](https://discourse.julialang.org/t/meta-programming-an-if-else-statement-of-user-defined-length/53525/5 "2021-01-18T09:20:36Z")

</div>

Can you provide an [MWE](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757/1)?

10ns is very small value, looks like arrays are very small and overhead from barriers shadows actual calculations. Is it always the case? For large enough arrays difference should be negligible, so further actions depends on the use case.

---

_[View the full topic](https://discourse.julialang.org/t/meta-programming-an-if-else-statement-of-user-defined-length/53525)._
