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 diff --git a/src/types.jl b/src/types.jl index 6dc8eb5..b4ffde4 100644 --- a/src/types.jl +++ b/src/types.jl @@ -15,12 +15,12 @@ struct ManualDataDep <: AbstractDataDep message::String end -struct DataDep{H, R, F, P} <: AbstractDataDep +struct DataDep <: AbstractDataDep name::String - remotepath::R - hash::H - fetch_method::F - post_fetch_method::P + remotepath + hash + fetch_method + post_fetch_method extra_message::String end