Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to automatically Precompile all concrete method signatures #28

Open
NHDaly opened this issue Jul 27, 2023 · 0 comments
Open

Function to automatically Precompile all concrete method signatures #28

NHDaly opened this issue Jul 27, 2023 · 0 comments

Comments

@NHDaly
Copy link
Member

NHDaly commented Jul 27, 2023

:) We talked about this in person at JuliaCon; filing an issue for it.

It would be awesome if there was functionality to automatically precompile all concretely-typed method signatures in a module. Something like:

PrecompileTools.precompile_static_signatures()

This could reflect over the module and find all reachable methods that have concrete signatures and include them in what's precompiled. For some applications (like RAI's) this could get pretty significant precompile coverage with very little work.

We may want to provide an option (default to true?) to control whether or we also pick up methods extending functions owned by package dependencies. To support that, we'll need to vendor in the kind of analysis that MethodAnalysis.jl does to find those methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant