Skip to content

Commit 8afbb9e

Browse files
committed
Add a few precompiles
1 parent 1f15024 commit 8afbb9e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ReferenceTests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ include("fileio.jl")
2121
include("equality_metrics.jl")
2222
include("render.jl")
2323

24+
if Base.VERSION >= v"1.4.2" && ccall(:jl_generating_output, Cint, ()) == 1
25+
@assert precompile(Tuple{Core.kwftype(typeof(test_reference)),NamedTuple{(:by,), Tuple{typeof(isequal)}},typeof(test_reference),String,Matrix{RGB{Float64}}}) # time: 0.4697069
26+
@assert precompile(Tuple{Core.kwftype(typeof(test_reference)),NamedTuple{(:by,), Tuple{typeof(isequal)}},typeof(test_reference),String,Matrix{RGBA{Float64}}}) # time: 0.24671553
27+
@assert precompile(Tuple{typeof(test_reference),File{DataFormat{:PNG}},Matrix{RGB{Float64}},Function,Nothing}) # time: 0.029915236
28+
@assert precompile(Tuple{typeof(test_reference),File{DataFormat{:PNG}},Matrix{RGBA{Float64}},Function,Nothing}) # time: 0.013356352
29+
end
30+
2431
end # module

0 commit comments

Comments
 (0)