Skip to content

Commit a8ced9a

Browse files
authored
Merge branch 'main' into mp/project-datasets
2 parents 475ab36 + 8283567 commit a8ced9a

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/JuliaHub.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,6 @@ macro _mark_names_public()
6363
end
6464
@_mark_names_public
6565

66+
include("precompile.jl")
67+
6668
end

src/precompile.jl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
precompile(JuliaHub.authenticate, ())
2+
precompile(JuliaHub.authenticate, (Nothing,))
3+
precompile(JuliaHub.authenticate, (String,))
4+
precompile(JuliaHub.authenticate, (String, String))
5+
6+
precompile(JuliaHub.datasets, ())
7+
precompile(JuliaHub.datasets, (String,))
8+
precompile(JuliaHub.dataset, (Dataset,))
9+
precompile(JuliaHub.dataset, (String,))
10+
precompile(JuliaHub.dataset, (Tuple{String, String},))
11+
12+
precompile(JuliaHub.jobs, ())
13+
precompile(JuliaHub.job, (Job,))
14+
precompile(JuliaHub.job, (String,))
15+
16+
precompile(JuliaHub.nodespecs, ())
17+
precompile(JuliaHub.batchimages, ())
18+
precompile(JuliaHub.batchimages, (String,))
19+
precompile(JuliaHub.appbundle, (String,))
20+
precompile(JuliaHub.appbundle, (String, String))
21+
precompile(JuliaHub.submit_job, (WorkloadConfig,))
22+
precompile(JuliaHub.submit_job, (BatchJob,))
23+
24+
# Precompile the basic show() methods for all public types
25+
for sym in JuliaHub._find_public_names()
26+
t = getfield(@__MODULE__, sym)
27+
if isa(t, DataType)
28+
precompile(Base.show, (Base.TTY, MIME"text/plain", t))
29+
precompile(Base.show, (Base.TTY, MIME"text/plain", Vector{t}))
30+
end
31+
end

0 commit comments

Comments
 (0)