I have a use case for
precompile(), which I believe deviates a bit from the original intent and implementation of the function (caching of compiled code in the precompile phase for packages, as I understand it).
I’m building a realtime system which loads dynamic code (changes from run to run). Code loading is not performance critical, but later use is. What I’d ideally want is an option to
precompile() that will compile all reachable functions for the entire function graph. I haven’t looked at the implementation itself so I’m not sure how big or small and ask this is, but it would be very helpful the way I’m trying to use it. Currently I fall back to warming up my function with different input data to try to exercise all code paths, but this can quickly become complicated.