From 16eb8306329bd65af2c3b3c45d022867fe61b982 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Fri, 28 Aug 2020 04:33:00 -0500 Subject: [PATCH] Precompile a `get!` instance used by Requires In conjunction with xref https://github.com/JuliaPackaging/Requires.jl/pull/89, this shaves about 100ms off the first usage of Requires. --- contrib/generate_precompile.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/generate_precompile.jl b/contrib/generate_precompile.jl index bb06180f82163..c77d779fbd82b 100644 --- a/contrib/generate_precompile.jl +++ b/contrib/generate_precompile.jl @@ -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 = """