You might want to switch to “Release” in MSVC once in a while and simply build to see the performance and potential build issues, etc.
Developing only in debug mode and never trying the release version will lead to surprises. Some of them may be unpleasant.
I think you will find that the dead-code stripping of a release build will increase the binary size for Gin down to a couple of kilobytes. Certainly not worth copying the function around and having a local copy of a single function.