I am working on developing an API for a test suite. One of the methods in the API requires the use of a library that isn't needed anywhere else in the API.
My question is whether the require statement for using the library should be placed inside the method or every time the API loads. The library isn't very large so it won't have a significant effect on performance.