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

New variable PRECOMPILE_SPINNER_INTERVAL #3809

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ function get_or_make_pkgspec(pkgspecs::Vector{PackageSpec}, ctx::Context, uuid)
end
end

const PRECOMPILE_SPINNER_INTERVAL = Ref(0.1)

function precompile(ctx::Context, pkgs::Vector{PackageSpec}; internal_call::Bool=false,
strict::Bool=false, warn_loaded = true, already_instantiated = false, timing::Bool = false,
_from_loading::Bool=false, flags_cacheflags::Pair{Cmd, Base.CacheFlags}=(``=>Base.CacheFlags()), kwargs...)
Expand Down Expand Up @@ -1386,7 +1388,7 @@ function precompile(ctx::Context, pkgs::Vector{PackageSpec}; internal_call::Bool
printpkgstyle(io, :Precompiling, target)
print(io, ansi_disablecursor)
end
t = Timer(0; interval=1/10)
t = Timer(0; interval=PRECOMPILE_SPINNER_INTERVAL[])
anim_chars = ["◐","◓","◑","◒"]
i = 1
last_length = 0
Expand Down
Loading