Improving performance of Swift package

I have started to make a Swift package to better organize my project, but I have noticed that when I try to use code from my package, some code will run much slower than when I use the same code in the project. How could this be solved? I have tried using @inlinable for functions, and it works for most functions, but some functions still fail to meet the performance standards that I see when I use the code in my project.

Improving performance of Swift package
 
 
Q