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

Hello - hope you’re having a wonderful day!

My name is Joey Higgins I’m a Contributor to 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 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?

1 Like

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.

1 Like