# When does having \`inline='always'\` actually make a difference in execution speed?

**URL:** <https://numba.discourse.group/t/when-does-having-inline-always-actually-make-a-difference-in-execution-speed/2718>\
**Category:** Community Support\
**Created:** [September 6, 2024, 3:34am UTC](https://numba.discourse.group/t/when-does-having-inline-always-actually-make-a-difference-in-execution-speed/2718 "2024-09-06T03:34:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joehiggi1758](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/joehiggi1758/32/1129_2.png) [@joehiggi1758](https://numba.discourse.group/u/joehiggi1758)\
**Post date:** [September 6, 2024, 3:34am UTC](https://numba.discourse.group/t/when-does-having-inline-always-actually-make-a-difference-in-execution-speed/2718/1 "2024-09-06T03:34:59Z")

</div>

Hello - hope you’re having a wonderful day!

My name is Joey Higgins I’m a Contributor to [STUMPY](https://github.com/TDAmeritrade/stumpy) which was founded and is maintained by @seanlaw. I am exploring inlining Numba functions to determine if it will reduce the overhead cost of calling private functions redundantly.

I’ve performed timing comparisons listed [here](https://github.com/TDAmeritrade/stumpy/issues/910) that indicate that having `inline='always'` doesn’t improve performance.

Which begs the question - when does having `inline='always'` actually make a difference in execution speed?

---

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [September 6, 2024, 6:06pm UTC](https://numba.discourse.group/t/when-does-having-inline-always-actually-make-a-difference-in-execution-speed/2718/2 "2024-09-06T18:06:17Z")

</div>

It depends… Numba could be already inlining the core by itself.

I usually just test it both ways and pick the faster one. Inlining also affects compile time and caching behavior.
