From a71561c7a336856d6048e0fd4399302366261763 Mon Sep 17 00:00:00 2001 From: Omar Elrefaei Date: Thu, 15 Jun 2023 15:47:47 -0400 Subject: [PATCH] Add a precompile statement to further improve TTFX --- src/DataDeps.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/DataDeps.jl b/src/DataDeps.jl index 59011c6..8ec41fd 100644 --- a/src/DataDeps.jl +++ b/src/DataDeps.jl @@ -29,4 +29,12 @@ include("preupload.jl") include("fetch_helpers.jl") include("post_fetch_helpers.jl") + +function _precompile_() + ccall(:jl_generating_output, Cint, ()) == 1 || return nothing + Base.precompile(Tuple{typeof(resolve), DataDep, String, String}) # time: 0.007738324 +end + +_precompile_() + end # module