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
Basic repl interaction not fully precompiled #54080
Comments
This might just take entering your cheat code into this script julia/stdlib/REPL/src/precompile.jl Lines 40 to 62 in 7ba1b33
|
Thank you! This is why I opened an issue instead of a PR. PR forthcoming. |
Unfortunately, that won't be enough. For example, typing 2+2 at the REPL currently triggers compilation even though it is already in the precompile script. x@fedora:~/.julia/dev/SplitREPL$ julia +nightly --startup-file=no --trace-compile=stderr
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _' | |
| | |_| | | | (_| | | Version 1.12.0-DEV.344 (2024-04-15)
_/ |\__'_|_|_|\__'_| | Commit 7ba1b332f87 (0 days old master)
|__/ |
julia> 2+precompile(Tuple{typeof(Base.repeat), Char, Int64})
2 |
#51106 would be helpful for diagnosing that, but it needs a rebase (cc. @JeffBezanson) |
The time these take are all of the order of where they take less time than is perceptible by a human and since this is for interactive work they don't really make a difference. If something is found that takes a long time it can be added to the script. |
As I mentioned in the OP, the runtime isn't what bothers me; it's the noise when I'm trying to test the precompilation of my own packages. An alternative solution would be to suppress or provide an option to suppress these precomiplation statements from being emitted. The fact that |
If I type this at the repl:
1+1[up][up][enter]1[up][down][left][right][down][home][backspace][del]one([tab]
, I get a lot of precomilationsThis test
Yields
On Julia 1.11
See also #52783, #51532
I find these precompilations annoying when I'm trying to determine whether my packages are fully precompiled at the REPL and have to parse out what is my fault and what is just the REPL.
The text was updated successfully, but these errors were encountered: