Skip to content

Commit

Permalink
Precompile a get! instance used by Requires (#37256)
Browse files Browse the repository at this point in the history
In conjunction with xref JuliaPackaging/Requires.jl#89,
this shaves about 100ms off the first usage of Requires.
  • Loading branch information
timholy authored Aug 28, 2020
1 parent e49e832 commit 9ce2c88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/generate_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ precompile(Tuple{typeof(push!), Set{Module}, Module})
precompile(Tuple{typeof(push!), Set{Method}, Method})
precompile(Tuple{typeof(push!), Set{Base.PkgId}, Base.PkgId})
precompile(Tuple{typeof(setindex!), Dict{String,Base.PkgId}, Base.PkgId, String})
precompile(Tuple{typeof(get!), Type{Vector{Function}}, Dict{Base.PkgId,Vector{Function}}, Base.PkgId})
"""

precompile_script = """
Expand Down

0 comments on commit 9ce2c88

Please sign in to comment.