# \#inline

**URL:** https://discourse.julialang.org/tag/inline/722.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Static call at runtime](https://discourse.julialang.org/t/static-call-at-runtime/134516)

<div class="topic-metadata">

**Author:** [@epilliat](https://discourse.julialang.org/u/epilliat)\
**Replies:** 7\
**Last updated:** [December 14, 2025, 9:55am UTC](https://discourse.julialang.org/t/static-call-at-runtime/134516 "2025-12-14T09:55:56Z")

</div>

This problem comes from several pieces of code I’ve been struggling to optimize due to missunderstanding of Julia compiler. I would like to know if there are any “standard” way to do this. Consider a function f that doe…

---

## [Odd inlining behaviour with cglobal wrapper, IS THIS A BUG? What am I doing wrong?](https://discourse.julialang.org/t/odd-inlining-behaviour-with-cglobal-wrapper-is-this-a-bug-what-am-i-doing-wrong/104562)

<div class="topic-metadata">

**Author:** [@gmcardle](https://discourse.julialang.org/u/gmcardle)\
**Replies:** 5\
**Last updated:** [October 30, 2023, 3:42pm UTC](https://discourse.julialang.org/t/odd-inlining-behaviour-with-cglobal-wrapper-is-this-a-bug-what-am-i-doing-wrong/104562 "2023-10-30T15:42:44Z")

</div>

Hi, I’m trying to make a convenience wrapper for fetching global variables from a C library. The basic wrapper function works, but multiple-dispatch variants don’t work unless I add some specific lines of debugging outpu…

---

## [Advanced iteration interface in Julia](https://discourse.julialang.org/t/advanced-iteration-interface-in-julia/68618)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 5\
**Last updated:** [September 23, 2021, 9:39am UTC](https://discourse.julialang.org/t/advanced-iteration-interface-in-julia/68618 "2021-09-23T09:39:15Z")

</div>

I’m working on a function to simplify iterating over binary trees. Ideally, this function should have the following signature: walk\_down( tree, starting\_vertex; two\_children, # Function vertex -\> Union{Val(:le…

---

## [Why is this small \`@inline\` function much slower than an equivalent macro?](https://discourse.julialang.org/t/why-is-this-small-inline-function-much-slower-than-an-equivalent-macro/63620)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 2\
**Last updated:** [June 26, 2021, 11:19pm UTC](https://discourse.julialang.org/t/why-is-this-small-inline-function-much-slower-than-an-equivalent-macro/63620 "2021-06-26T23:19:50Z")

</div>

My understanding is that in Julia macros are meant to be used for expressiveness and to make DSLs, not for performance hacks. But in this bit-fiddling SIMD loop, a macro is much faster than the corresponding inline funct…
