I’m building a package for which I want to minimize using load time. It has a bunch of dependencies that are only needed for some specific functionalities, called via specific methods. Can I somehow delay loading the dependencies until the user calls the methods that use them? What is the recommended approach to such a problem?
Note: as I understand it, this is kind of the conjugate of the problem that Requires.jl solves (defining some methods only after the user loads a package).
But this works only if you call this function from global scope, if you call it inside another function, you will not get this dependency in the calling function due to world age.