diff --git a/src/ImageIO.jl b/src/ImageIO.jl index 3a8ffcd..14004da 100644 --- a/src/ImageIO.jl +++ b/src/ImageIO.jl @@ -89,4 +89,18 @@ function save(s::Stream{DataFormat{:TIFF}}, image::S; permute_horizontal=false, end end +## Function names labelled for FileIO. Makes FileIO lookup quicker +const fileio_save = save +const fileio_load = load + +## Precompiles +function _precompile_() + ccall(:jl_generating_output, Cint, ()) == 1 || return nothing + @assert Base.precompile(Tuple{typeof(checked_import),Symbol}) +end + +if Base.VERSION >= v"1.5" + _precompile_() +end + end # module