Skip to content

Commit

Permalink
Add a precompile statement to further improve TTFX
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar-Elrefaei committed Jun 15, 2023
1 parent 4ce7d10 commit a71561c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DataDeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a71561c

Please sign in to comment.