Skip to content

Commit

Permalink
Merge pull request #165 from Omar-Elrefaei/master
Browse files Browse the repository at this point in the history
Tweak type inference to improve TTFX
  • Loading branch information
oxinabox authored Jun 16, 2023
2 parents 540118c + a71561c commit ab0b75a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 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
10 changes: 5 additions & 5 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab0b75a

Please sign in to comment.