-
Notifications
You must be signed in to change notification settings - Fork 49
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
Allow to SnoopPrecompile to dump the precompilation directives in a file #312
Comments
That is possible, though understand it also causes all the old problems: internal changes in Julia can make the specific precompiles break. For example, Julia 1.9 eliminates kwfuncs in favor of a generic FYI the precompile workload doesn't get executed when you load the package: Does that solve your issue? |
Thanks @timholy !
Unfortunately not. The database I am connecting is a telemetry database in an internal network. Most of the time I will not have access to it. Hence, any dependency update will trigger a recompilation of the package and it will fail. The Furthermore, the connection to the database is protected by a password and I do not want to write it down at the precompilation statements, even if the package is only used inside my institute. I understand the old problems related to Julia versioning. In my case, it would be better to handle those different versions than any other work arround. But I fully understand if you really do not want to support it since it can lead to those problems. I see that my problem seems very particular. Thus, feel free to close this issue :) |
I'll leave this open since I see this might be important for you. If you want to prepare a PR yourself, notice that SnoopPrecompile is almost trivial, and that |
Sure! I will try :) Thanks! |
Hi!
I would like to use SnoopPrecompile in a package that perform a lot activity using a database through ODBC.jl. However, I cannot use
@precompile_all_calls
because it will require a working database connection every time the user loads the package.Is it possible to allow SnoopPrecompile to dump all precompilation statements into a file (just like we usually did before) so that I can generate them from a controlled environment before tagging a new package version?
The text was updated successfully, but these errors were encountered: