in reply to Inline - Subroutine Overhead

Welcome.

10,000 times is not that much, in itself. Could it be that your subroutine has many parameters / return values? If so, simply rewriting it to pass by reference may speed things up considerably.